Moved clone command to sshagent block

This commit is contained in:
Marcin-Ramotowski
2025-07-08 19:44:23 +02:00
parent 49f19dabe6
commit 23814bef0c

View File

@ -57,9 +57,10 @@ pipeline {
git config --global user.name "jenkins[bot]"
git config --global user.email "jenkins@marcin00.pl"
git clone ${DEPLOY_REPO} --branch jenkins-kubernetes
'''
sshagent(['gitea-deploy-key']) {
sh 'git clone ${DEPLOY_REPO} --branch jenkins-kubernetes'
}
}
dir('user-microservice-deploy') {