jenkinsci / jenkinsci/matrix-project-plugin
[JENKINS-23445] Can't use matrix-project with multiple-scms
- Dominant language
- Java
- Stars
- 17
- Forks
- 85
- Avg merge
- 4h 27m
- Merged PRs (30d)
- 5
Description
On "master" task, no problem, jenkins checkout good repo and branch.
But on "slave" tasks, It checkout the same branch for all scm (git in my case).
How-to reproduce?
- create a multiconfiguration project
- Add 2 scm git
- 1 for repo/branch A (on / by default, or on dir "A", irrelevant)
- 2 for repo/branch B and put it on dir "B"
- add configuration matrix, with one axis that can take multiple values
On slave the folders structure gets created correctly, but the second one is empty.
When checking the console output, the "master" task clones and checks out the two repos correctly (different revision numbers (long string, probably a hash) for each of the 2 repos).
Each of the "slave" tasks defined by the configuration matrix, will try to fetch and checkout the same revision number for both repos, and therefore will fail on the second one.
---
Originally reported by guilhem, imported from: Can't use matrix-project with multiple-scms
kohsuke
Raw content of original issue
On "master" task, no problem, jenkins checkout good repo and branch.
But on "slave" tasks, It checkout the same branch for all scm (git in my case).
How-to reproduce?
- create a multiconfiguration project
- Add 2 scm git
- 1 for repo/branch A (on / by default, or on dir "A", irrelevant)
- 2 for repo/branch B and put it on dir "B"
- add configuration matrix, with one axis that can take multiple values
On slave the folders structure gets created correctly, but the second one is empty.
When checking the console output, the "master" task clones and checks out the two repos correctly (different revision numbers (long string, probably a hash) for each of the 2 repos).
Each of the "slave" tasks defined by the configuration matrix, will try to fetch and checkout the same revision number for both repos, and therefore will fail on the second one.
Contributor guide
Research direction
Reproduce the configuration described: a multiconfiguration project with two Git SCMs, distinct branches or repositories, and a matrix axis with multiple values. Compare the master and slave task console output and workspace folders; done means each slave checks out the correct revision for both repositories and the second repository is populated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, java
- Domain
- ci-cd
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100