Testing different jenkinsfile
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
f1a1204417
commit
89b937ea21
|
@ -9,12 +9,22 @@ pipeline {
|
||||||
sh '''
|
sh '''
|
||||||
[ -d ~/.ssh ] || mkdir ~/.ssh && chmod 0700 ~/.ssh
|
[ -d ~/.ssh ] || mkdir ~/.ssh && chmod 0700 ~/.ssh
|
||||||
ssh-keyscan -t rsa,dsa baltimore-wiki.lxd >> ~/.ssh/known_hosts
|
ssh-keyscan -t rsa,dsa baltimore-wiki.lxd >> ~/.ssh/known_hosts
|
||||||
|
'''
|
||||||
|
if(env.BRANCHNAME == 'main') {
|
||||||
|
sh '''
|
||||||
ssh mdbook@baltimore-wiki.lxd << EOF
|
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
|
EOF
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue