Jenkins Git cred
This commit is contained in:
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user