see this is the bad thing - i get distracted mid Thing so i have no idea what this is. but it's pending.
All checks were successful
gitea.arg.rip/deployment/pipeline/head This commit looks good
All checks were successful
gitea.arg.rip/deployment/pipeline/head This commit looks good
This commit is contained in:
parent
6984d855b5
commit
c2575e696a
@ -67,19 +67,26 @@ pipeline {
|
||||
"webhooks": true
|
||||
}'
|
||||
"""
|
||||
if(!params.database){
|
||||
//TODO: set up credentials for jenkins to checkout
|
||||
sshagent(['credentiald-id-using-ssh-key'])
|
||||
{
|
||||
sshagent(['credentiald-id-using-ssh-key']) {
|
||||
sh """
|
||||
git clone 'ssh://git@gitea.arg.rip:8022/greyn/${servicename}.git'
|
||||
pushd ${servicename}
|
||||
"""
|
||||
}
|
||||
if(!params.database){
|
||||
sh """
|
||||
#//TODO: strip database stuff. sed -i?
|
||||
git add .
|
||||
git commit -m "stripped database stuff"
|
||||
git push
|
||||
"""
|
||||
}
|
||||
|
||||
sshagent(['credentiald-id-using-ssh-key']) {
|
||||
sh """
|
||||
git push
|
||||
popd
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user