Testing ssh
Gitea/webhook-testing/pipeline/head There was a failure building this commit Details

testing
s00ner 2022-02-17 01:43:46 +00:00
parent 8d507ae7d3
commit 7e693213b4
1 changed files with 8 additions and 0 deletions

8
Jenkinsfile vendored
View File

@ -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'''
}
}
}
}