From 23814bef0c064cf3b776601e63f979b3cf452239 Mon Sep 17 00:00:00 2001 From: Marcin-Ramotowski Date: Tue, 8 Jul 2025 19:44:23 +0200 Subject: [PATCH] Moved clone command to sshagent block --- .jenkins/Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.jenkins/Jenkinsfile b/.jenkins/Jenkinsfile index 2013144..aa91558 100644 --- a/.jenkins/Jenkinsfile +++ b/.jenkins/Jenkinsfile @@ -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') {