Uprev documentation job to display -next 65/20765/1
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Thu, 21 Mar 2019 15:45:39 +0000 (16:45 +0100)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Thu, 21 Mar 2019 15:45:39 +0000 (16:45 +0100)
Upload will be to https://docs.automotivelinux.org/next

Change-Id: I85b55026e16d2b47f213ede6d359af97aa58e09f
Bug-AGL: SPEC-2044
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
jjb/daily-jjb-doc-update/include-doc-update.sh
jjb/daily-jjb-doc-update/include-doc-upload.sh

index 4757015..0aec673 100644 (file)
@@ -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
index 116f703..731a122 100644 (file)
@@ -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