Testing ssh
Gitea/webhook-testing/pipeline/head There was a failure building this commit
Details
Gitea/webhook-testing/pipeline/head There was a failure building this commit
Details
parent
8d507ae7d3
commit
7e693213b4
|
@ -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'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue