Moved clone command to sshagent block
This commit is contained in:
5
.jenkins/Jenkinsfile
vendored
5
.jenkins/Jenkinsfile
vendored
@ -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') {
|
||||
|
Reference in New Issue
Block a user