20 lines
526 B
Groovy
20 lines
526 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
stages {
|
|
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 -t mdbook@baltimore-wiki.lxd << EOF
|
|
echo "testing" >> ~/test
|
|
EOF
|
|
'''
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |