From a6707fe731c08174c35eae02d0f245591c255306 Mon Sep 17 00:00:00 2001 From: Marco Santos Date: Mon, 6 Oct 2025 23:15:58 +0100 Subject: [PATCH] Jenkins Git cred --- Jenkinsfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index fc783fc..deed328 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,6 +14,7 @@ pipeline { DOCKER_CREDENTIALS_ID = 'docker-registry-creds' KUBECONFIG_CREDENTIALS_ID = 'kubeconfig-jenkins' + GIT_CREDENTIALS_ID = 'jenkinsGitea' } stages { @@ -29,7 +30,10 @@ pipeline { stage('Checkout Repositório') { steps { - git branch: 'master', url: 'https://git.homeware.pt/Marco/Geradores.git' + + url: 'https://git.homeware.pt/Marco/Geradores.git', + git branch: 'master', + credentialsId: env.GIT_CREDENTIALS_ID } }