webhook-testing/Jenkinsfile

20 lines
511 B
Plaintext
Raw Normal View History

2022-02-16 21:32:32 +00:00
pipeline {
agent any
stages {
stage('Do nothing') {
steps {
sh '/bin/true'
2022-02-17 01:43:46 +00:00
sshagent(credentials: ['baltimore-wiki']) {
sh '''
[ -d ~/.ssh ] || mkdir ~/.ssh && chmod 0700 ~/.ssh
ssh-keyscan -t rsa,dsa baltimore-wiki.lxd >> ~/.ssh/known_hosts
2022-02-17 02:00:38 +00:00
ssh -tt mdbook@baltimore-wiki.lxd << EOF
2022-02-17 01:43:46 +00:00
echo "testing" >> ~/test
2022-02-17 02:12:10 +00:00
EOF
2022-02-17 01:54:17 +00:00
'''
2022-02-17 01:43:46 +00:00
}
2022-02-16 21:32:32 +00:00
}
}
}
}