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

testing
s00ner 2022-02-17 10:06:20 -05:00
parent f1a1204417
commit 89b937ea21
1 changed files with 13 additions and 3 deletions

16
Jenkinsfile vendored
View File

@ -6,13 +6,23 @@ pipeline {
steps {
sh '/bin/true'
sshagent(credentials: ['baltimore-wiki']) {
sh '''
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
'''
if(env.BRANCHNAME == 'main') {
sh '''
ssh mdbook@baltimore-wiki.lxd << EOF
echo "main branch" >> ~/test
EOF
'''
if(env.BRANCHNAME == 'testing') {
sh '''
ssh mdbook@baltimore-wiki.lxd << EOF
echo "testing branch" >> ~/test
EOF
'''
}
}
}
}