jenkinsci / jenkinsci/matrix-project-plugin

[JENKINS-23445] Can't use matrix-project with multiple-scms

Open
#574 3 comments 0 reactions 0 assignees View on GitHub
component:matrix-project-plugin component:multiple-scms-plugin imported-jira-issue priority:major resolution:unresolved
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


  • assignee: kohsuke
  • status: Open
  • priority: Major
  • component(s): matrix-project-plugin, multiple-scms-plugin
  • resolution: Unresolved
  • votes: 1
  • watchers: 4
  • imported: 2025-12-06

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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.