diff --git a/Jenkinsfile b/Jenkinsfile index cc4c8cd..9930cad 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,6 +5,14 @@ pipeline { stage('Do nothing') { steps { sh '/bin/true' + sshagent(credentials: ['baltimore-wiki']) { + sh ''' + [ -d ~/.ssh ] || mkdir ~/.ssh && chmod 0700 ~/.ssh + ssh-keyscan -t rsa,dsa baltimore-wiki.lxd >> ~/.ssh/known_hosts + ssh mdbook@baltimore-wiki.lxd << EOF + echo "testing" >> ~/test + EOF''' + } } } }