jenkinsci / jenkinsci/git-client-plugin
[JENKINS-29644] Branch parameter ignored when a non-parameterized branch is also monitored
- 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
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)
> 
Contributor guide
Assessment
This issue has not been assessed yet.