jenkinsci / jenkinsci/git-plugin

[JENKINS-41830] SCM - Cloning multiple git repositories in parallel causes same change multiple times in pipeline job

Open
#3,038 5 comments 0 reactions 0 assignees View on GitHub
component:git-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

Build page contain same change list multiple times, when using parallel in pipeline.

parallel (

"test1" : {
checkout([
$class: 'GitSCM',
branches: [[
name: 'master'
]],
doGenerateSubmoduleConfigurations: false,
extensions: [[
$class: 'RelativeTargetDirectory',
relativeTargetDir: 'test1'
],[
$class: 'ScmName',
name: 'test1'
]],
submoduleCfg: [],
userRemoteConfigs: [[
credentialsId: 'test',
url: 'ssh://git@​github.com/test1'
]]
])
},
"test2" : {
checkout([
$class: 'GitSCM',
branches: [[
name: 'master'
]],
doGenerateSubmoduleConfigurations: false,
extensions: [[
$class: 'RelativeTargetDirectory',
relativeTargetDir: 'test2'
],[
$class: 'ScmName',
name: 'test2'
]],
submoduleCfg: [],
userRemoteConfigs: [[
credentialsId: 'test',
url: 'ssh://git@​github.com/test2'
]]
])
},
"test3" : {
checkout([
$class: 'GitSCM',
branches: [[
name: 'master'
]],
doGenerateSubmoduleConfigurations: false,
extensions: [[
$class: 'RelativeTargetDirectory',
relativeTargetDir: 'test3'
],[
$class: 'ScmName',
name: 'test3'
]],
submoduleCfg: [],
userRemoteConfigs: [[
credentialsId: 'test',
url: 'ssh://git@​github.com/test3'
]]
])
}
)

---
Originally reported by shahmishal, imported from: SCM - Cloning multiple git repositories in parallel causes same change multiple times in pipeline job


  • status: Open
  • priority: Major
  • component(s): git-plugin
  • resolution: Unresolved
  • votes: 5
  • watchers: 8
  • imported: 2025-12-02

Raw content of original issue

Build page contain same change list multiple times, when using parallel in pipeline.


parallel (

"test1" : {
checkout([
$class: 'GitSCM',
branches: [[
name: 'master'
]],
doGenerateSubmoduleConfigurations: false,
extensions: [[
$class: 'RelativeTargetDirectory',
relativeTargetDir: 'test1'
],[
$class: 'ScmName',
name: 'test1'
]],
submoduleCfg: [],
userRemoteConfigs: [[
credentialsId: 'test',
url: 'ssh://git@github.com/test1'
]]
])
},
"test2" : {
checkout([
$class: 'GitSCM',
branches: [[
name: 'master'
]],
doGenerateSubmoduleConfigurations: false,
extensions: [[
$class: 'RelativeTargetDirectory',
relativeTargetDir: 'test2'
],[
$class: 'ScmName',
name: 'test2'
]],
submoduleCfg: [],
userRemoteConfigs: [[
credentialsId: 'test',
url: 'ssh://git@github.com/test2'
]]
])
},
"test3" : {
checkout([
$class: 'GitSCM',
branches: [[
name: 'master'
]],
doGenerateSubmoduleConfigurations: false,
extensions: [[
$class: 'RelativeTargetDirectory',
relativeTargetDir: 'test3'
],[
$class: 'ScmName',
name: 'test3'
]],
submoduleCfg: [],
userRemoteConfigs: [[
credentialsId: 'test',
url: 'ssh://git@github.com/test3'
]]
])
}
)

  • environment: Jenkins 2.32.2

1 attachment

- [Screen Shot 2017-02-09 at 5.06.22 PM.png](https://issues.jenkins.io/secure/attachment/35868/Screen%20Shot%202017-02-09%20at%205.06.22%20PM.png)
> ![Screen Shot 2017-02-09 at 5.06.22 PM.png](https://issues.jenkins.io/secure/attachment/35868/Screen%20Shot%202017-02-09%20at%205.06.22%20PM.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.