aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/daily-jjb-doc-update
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2019-03-21 16:45:39 +0100
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>2019-03-21 16:45:39 +0100
commit7ef3154af8c80c93fead4c61bdf1a0d8f4716197 (patch)
tree1d156eddd25a2691eb4a86c06e4e7454547ea967 /jjb/daily-jjb-doc-update
parent012de8eeb5300dff572162b18f2e808afb5ceeb4 (diff)
Uprev documentation job to display -next
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>
Diffstat (limited to 'jjb/daily-jjb-doc-update')
-rw-r--r--jjb/daily-jjb-doc-update/include-doc-update.sh30
-rw-r--r--jjb/daily-jjb-doc-update/include-doc-upload.sh23
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