Jenkins Git cred

This commit is contained in:
2025-10-06 23:15:58 +01:00
parent 19ad8deb6f
commit a6707fe731

6
Jenkinsfile vendored
View File

@@ -14,6 +14,7 @@ pipeline {
DOCKER_CREDENTIALS_ID = 'docker-registry-creds' DOCKER_CREDENTIALS_ID = 'docker-registry-creds'
KUBECONFIG_CREDENTIALS_ID = 'kubeconfig-jenkins' KUBECONFIG_CREDENTIALS_ID = 'kubeconfig-jenkins'
GIT_CREDENTIALS_ID = 'jenkinsGitea'
} }
stages { stages {
@@ -29,7 +30,10 @@ pipeline {
stage('Checkout Repositório') { stage('Checkout Repositório') {
steps { 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
} }
} }