From 7ef3154af8c80c93fead4c61bdf1a0d8f4716197 Mon Sep 17 00:00:00 2001 From: Jan-Simon Möller Date: Thu, 21 Mar 2019 16:45:39 +0100 Subject: Uprev documentation job to display -next MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Upload will be to https://docs.automotivelinux.org/next Change-Id: I85b55026e16d2b47f213ede6d359af97aa58e09f Bug-AGL: SPEC-2044 Signed-off-by: Jan-Simon Möller --- jjb/daily-jjb-doc-update/include-doc-update.sh | 30 +++++++++++--------------- jjb/daily-jjb-doc-update/include-doc-upload.sh | 23 ++++++++++++++------ 2 files changed, 28 insertions(+), 25 deletions(-) diff --git a/jjb/daily-jjb-doc-update/include-doc-update.sh b/jjb/daily-jjb-doc-update/include-doc-update.sh index 47570151..0aec6733 100644 --- a/jjb/daily-jjb-doc-update/include-doc-update.sh +++ b/jjb/daily-jjb-doc-update/include-doc-update.sh @@ -1,25 +1,19 @@ #!/bin/bash set -e +#!/bin/bash +set -e +set -x # we need a name and an email #git config --global user.name build.automotivelinux.org #git config --global user.email jenkins@automotivelinux.org -git config user.name build.automotivelinux.org -git config user.email jenkins@automotivelinux.org - -# make sure 'node' is in path (debian calls it nodejs) -mkdir -p bin -ln -sf /usr/bin/nodejs bin/node -export PATH=$PATH:`pwd`/bin - -pushd doctools/webdocs - npm install - gem list -popd +git config --global user.name build.automotivelinux.org +git config --global user.email jenkins@automotivelinux.org -# build the docs -pushd webdocs-agl - make clean - make fetch - make build -popd \ No newline at end of file +rm -rf docs-webtemplate || true +wget https://raw.githubusercontent.com/automotive-grade-linux/docs-webtemplate/master-next/setupdocs.sh +mkdir docs-webtemplate +bash -x setupdocs.sh --directory=docs-webtemplate --webtemplate-ref=master-next --doctools-ref=master-next --baseurl=/next +# Todo --baseurl=/upload/ci/20018 +cd docs-webtemplate +make build \ No newline at end of file diff --git a/jjb/daily-jjb-doc-update/include-doc-upload.sh b/jjb/daily-jjb-doc-update/include-doc-upload.sh index 116f703f..731a122a 100644 --- a/jjb/daily-jjb-doc-update/include-doc-upload.sh +++ b/jjb/daily-jjb-doc-update/include-doc-upload.sh @@ -1,16 +1,25 @@ #!/bin/bash +set -e +set -x + +[[ -z "$WORKSPACE" ]] && WORKSPACE=$(pwd -P) +HTDOCS=${HTDOCS:-$WORKSPACE/docs-webtemplate/build-dev/} +TMPDIR=${TMPDIR:-$WORKSPACE/upload-gh} + # publish the docs -pushd webdocs-agl - git clone -b gh-pages git@github.com:automotive-grade-linux/docs-agl.git upload-gh-pages - cp -ar build-dev/* upload-gh-pages/ - pushd upload-gh-pages + +ssh-keyscan -H github.com >> ~/.ssh/known_hosts + +mkdir -p $TMPDIR +git clone -b gh-pages git@github.com:automotive-grade-linux/docs-gh-pages.git $TMPDIR/upload-gh-pages +mkdir -p $TMPDIR/upload-gh-pages/next/ +cp -ar $HTDOCS/* $TMPDIR/upload-gh-pages/next/ +pushd $TMPDIR/upload-gh-pages git config user.name build.automotivelinux.org git config user.email jenkins@automotivelinux.org git diff git add . git commit --amend -m"Render: $(date)" git push origin gh-pages:gh-pages -f - popd -popd - +popd \ No newline at end of file -- cgit 1.2.3-korg