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 } }