jenkinsci / jenkinsci/git-client-plugin

[JENKINS-29644] Branch parameter ignored when a non-parameterized branch is also monitored

Open
#1,486 2 comments 0 reactions 0 assignees View on GitHub
component:git-client-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
152
Forks
402
Avg merge
6h 47m
Merged PRs (30d)
4

Description

when setting a jenkins job that tracks 2 sources - */develop as jenkins trigger and ${branch} as a parameterized branch

the build always builds the develop branch(as if it was externally triggered) and ignores the ${branch} parameter.

without this option users are forced to create 2+ build jobs doing the same thing, therefor have double the maintenance and bugs because of code duplication

attached the Stash screen that sets up the jenkins trigger

---
Originally reported by roiros, imported from: Branch parameter ignored when a non-parameterized branch is also monitored


  • status: Open
  • priority: Minor
  • component(s): git-client-plugin
  • label(s): git, git-client, jenkins, plugin
  • resolution: Unresolved
  • votes: 2
  • watchers: 4
  • imported: 20251211-071809

Raw content of original issue

when setting a jenkins job that tracks 2 sources - */develop as jenkins trigger and ${branch} as a parameterized branch
the build always builds the develop branch(as if it was externally triggered) and ignores the ${branch} parameter.

without this option users are forced to create 2+ build jobs doing the same thing, therefor have double the maintenance and bugs because of code duplication

attached the Stash screen that sets up the jenkins trigger

environment

```
git-client 1.16.1

Jenkins 1.580.2
```

1 attachment

- [Screenshot_1.png](https://issues.jenkins.io/secure/attachment/30301/Screenshot_1.png)
> ![Screenshot_1.png](https://issues.jenkins.io/secure/attachment/30301/Screenshot_1.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.