jenkinsci / jenkinsci/git-plugin

[JENKINS-14846] Multiple repositories failes checkout of custom branch

Open
#2,180 3 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

Steps to reproduce:

1. Setup git plugin with two repositories (with or without refspec)

2. Specify a job string parameter for the branch

3. Launch the build with a custom branch as parameter

Actual results:

Checks out the last built branch

Expected results:

Check out the branch which was specified by parameter

---
Originally reported by flozzone, imported from: Multiple repositories failes checkout of custom branch


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

Raw content of original issue

Steps to reproduce:
1. Setup git plugin with two repositories (with or without refspec)
2. Specify a job string parameter for the branch
3. Launch the build with a custom branch as parameter

Actual results:
Checks out the last built branch

Expected results:
Check out the branch which was specified by parameter

environment

```
jenkins: 1.477 and 1.472

git: 1.1.21 and 1.1.22
```

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.