jenkinsci / jenkinsci/git-plugin
[JENKINS-40733] git-plugin uses same default job parameters on notifyCommit
- Dominant language
- Java
- Stars
- 694
- Forks
- 1.1k
- Avg merge
- 1h 29m
- Merged PRs (30d)
- 3
Description
If two Multijobs are listening for same repository, same branch and have parameters with same name but with different parameter values then only one value will be used.
Example:
- There is job1 and job2 who listen to same repository and have String parameter with same name.
- call git notifyCommit which triggers jobs:
http://xxxxxxxxxx/git/notifyCommit?url=%2Fhome%2Fmvndev%2Fplugin_src%2Fgit-plugin%2F.git&branches=master&sha1=0895db13d1005b4a537f7fc87c3be0969c010c97```
Scheduled job1
Scheduled job2
No Git consumers using SCM API plugin for: /home/mvndev/plugin_src/git-plugin/.git```
- as result triggered build use both parameters.
---
Originally reported by nakiphas, imported from: git-plugin uses same default job parameters on notifyCommit
Raw content of original issue
If two Multijobs are listening for same repository, same branch and have parameters with same name but with different parameter values then only one value will be used.
Example:
- There is job1 and job2 who listen to same repository and have String parameter with same name.
- call git notifyCommit which triggers jobs:
http://xxxxxxxxxx/git/notifyCommit?url=%2Fhome%2Fmvndev%2Fplugin_src%2Fgit-plugin%2F.git&branches=master&sha1=0895db13d1005b4a537f7fc87c3be0969c010c97Scheduled job1
Scheduled job2
No Git consumers using SCM API plugin for: /home/mvndev/plugin_src/git-plugin/.git - as result triggered build use both parameters.
3 attachments
- [job1.png](https://issues.jenkins.io/secure/attachment/35301/job1.png)
> 
- [job2.png](https://issues.jenkins.io/secure/attachment/35302/job2.png)
> 
- [parametters.png](https://issues.jenkins.io/secure/attachment/35300/parametters.png)
> 
Contributor guide
Assessment
This issue has not been assessed yet.