-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major
-
Component/s: workflow-scm-step-plugin
-
None
Hi,
In my Jenkinsfile, I've below configuration to checkout two SCM repos.
Â
stage('Multiple SCM checkuot'){
checkout([$class: 'GitSCM', branches: [[name: '${SERVICE_REPO_BRANCH1}']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'GitHubCredentials', url: '${SERVICE_REPO_URL1}']]])
Â
checkout([$class: 'GitSCM', branches: [[name: '${SERVICE_REPO_BRANCH2}']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'GitHubCredentials', url: '${SERVICE_REPO_URL2}']]])
}
Â
Now I am fetching the changeLog using below code snippet.
Â
currentBuild.changeSets
Â
The above method is giving me the change sets from both the repos but I want to fetch the changesets specific to one repo. Please suggest on this.