aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/daily-jjb-doc-update/include-doc-upload.sh
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/daily-jjb-doc-update/include-doc-upload.sh')
-rw-r--r--jjb/daily-jjb-doc-update/include-doc-upload.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/jjb/daily-jjb-doc-update/include-doc-upload.sh b/jjb/daily-jjb-doc-update/include-doc-upload.sh
index 9914e374..2dc54130 100644
--- a/jjb/daily-jjb-doc-update/include-doc-upload.sh
+++ b/jjb/daily-jjb-doc-update/include-doc-upload.sh
@@ -14,8 +14,13 @@ ssh-keyscan -H github.com >> ~/.ssh/known_hosts
rm -rf $TMPDIR || true
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/
+
+rm -rf $TMPDIR/upload-gh-pages/*
cp -ar $HTDOCS/* $TMPDIR/upload-gh-pages/
+
+# tell github that we're serving this as docs.automotivelinux.org
+echo "docs.automotivelinux.org" > $TMPDIR/upload-gh-pages/CNAME
+
pushd $TMPDIR/upload-gh-pages
git config user.name build.automotivelinux.org
git config user.email jenkins@automotivelinux.org