jenkinsci / jenkinsci/git-plugin
[JENKINS-41830] SCM - Cloning multiple git repositories in parallel causes same change multiple times in pipeline job
- 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
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)
> 
Contributor guide
Assessment
This issue has not been assessed yet.