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

This commit is contained in:
adam 2024-11-17 23:25:14 -05:00
parent 6984d855b5
commit c2575e696a

View File

@ -67,19 +67,26 @@ pipeline {
"webhooks": true "webhooks": true
}' }'
""" """
//TODO: set up credentials for jenkins to checkout
sshagent(['credentiald-id-using-ssh-key']) {
sh """
git clone 'ssh://git@gitea.arg.rip:8022/greyn/${servicename}.git'
pushd ${servicename}
"""
}
if(!params.database){ if(!params.database){
//TODO: set up credentials for jenkins to checkout sh """
sshagent(['credentiald-id-using-ssh-key']) #//TODO: strip database stuff. sed -i?
{ git add .
sh """ git commit -m "stripped database stuff"
git clone 'ssh://git@gitea.arg.rip:8022/greyn/${servicename}.git' """
pushd ${servicename} }
#//TODO: strip database stuff. sed -i?
git add . sshagent(['credentiald-id-using-ssh-key']) {
git commit -m "stripped database stuff" sh """
git push git push
""" popd
} """
} }
} }
} }