diff --git a/first-class-pipeline/src/com/freeleaps/devops/SourceFetcher.groovy b/first-class-pipeline/src/com/freeleaps/devops/SourceFetcher.groovy index 25c453e4..6809aa8b 100644 --- a/first-class-pipeline/src/com/freeleaps/devops/SourceFetcher.groovy +++ b/first-class-pipeline/src/com/freeleaps/devops/SourceFetcher.groovy @@ -19,7 +19,7 @@ class SourceFetcher { steps.env.workroot = "${steps.env.WORKSPACE}/devops-workspace/${configurations.serviceName}" steps.dir(steps.env.workroot) { - steps.git branch: configurations.serviceGitBranch, credentialsId: 'git-bot-credentials', url: configurations.serviceGitRepo + steps.git branch: configurations.serviceGitBranch, credentialsId: configurations.serviceGitCredentialsId, url: configurations.serviceGitRepo } } } \ No newline at end of file diff --git a/first-class-pipeline/tests/Jenkinsfile b/first-class-pipeline/tests/Jenkinsfile index cfe8a27f..83ae3f13 100644 --- a/first-class-pipeline/tests/Jenkinsfile +++ b/first-class-pipeline/tests/Jenkinsfile @@ -13,6 +13,9 @@ executeFreeleapsPipeline { // monorepo: all services codes are in the same repo and using sub-folders to separate them // separated: each service has its own repo serviceGitRepoType = 'monorepo' // monorepo, separated + // serviceGitCredentialsId used to specify the git credentials id of the service codes + // the credentials should be stored in Jenkins + serviceGitCredentialsId = 'gitops-mvp-app-azure-devops' // executeMode used to specify the pipeline execution mode // on-demand: the pipeline will be triggered with code changes, only changed components will be executed // fully: the pipeline will be triggered without code changes, all components will be executed