Add github to known hosts 79/18679/1
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Tue, 11 Dec 2018 13:56:59 +0000 (14:56 +0100)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Tue, 11 Dec 2018 13:56:59 +0000 (14:56 +0100)
and avoid key verification issue.

Change-Id: If8b6023cf4bae141bf9eff3ee0b70b127282faa5
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
jenkins-scripts/basic_settings.sh
jjb/daily-jjb-doc-multiversion-update/include-doc-multiversion-upload.sh

index 3aefc9e..5e19339 100755 (executable)
@@ -51,6 +51,10 @@ Host vex-yul-agl-download.ci.codeaurora.org
   StrictHostKeyChecking no
   UserKnownHostsFile /dev/null
 
+Host github.com
+  StrictHostKeyChecking no
+  UserKnownHostsFile /dev/null
+
 EOSSH
 
 cat <<EOKNOWN >  /etc/ssh/ssh_known_hosts
index 5c505d2..d9e20dd 100644 (file)
@@ -7,11 +7,13 @@ TMPDIR=${TMPDIR:-$WORKSPACE/upload-gh}
 
 # publish the docs
 
+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
 cp -ar $HTDOCS/* $TMPDIR/upload-gh-pages/
 pushd $TMPDIR/upload-gh-pages
-       git config user.name build.automotivelinux.org
+    git config user.name build.automotivelinux.org
     git config user.email jenkins@automotivelinux.org
     git diff
     git add .