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

12
Jenkinsfile vendored
View File

@ -9,8 +9,17 @@ pipeline {
sh '''
[ -d ~/.ssh ] || mkdir ~/.ssh && chmod 0700 ~/.ssh
ssh-keyscan -t rsa,dsa baltimore-wiki.lxd >> ~/.ssh/known_hosts
'''
if(env.BRANCHNAME == 'main') {
sh '''
ssh mdbook@baltimore-wiki.lxd << EOF
echo "testing" >> ~/test
echo "main branch" >> ~/test
EOF
'''
if(env.BRANCHNAME == 'testing') {
sh '''
ssh mdbook@baltimore-wiki.lxd << EOF
echo "testing branch" >> ~/test
EOF
'''
}
@ -18,3 +27,4 @@ EOF
}
}
}
}