jenkinsci / jenkinsci/git-plugin
[JENKINS-29603] notifyCommit branch parameter can't contain slashes
- Dominant language
- Java
- Stars
- 694
- Forks
- 1.1k
- Avg merge
- 1h 29m
- Merged PRs (30d)
- 3
Description
I have a simple Jenkins job called "myjob":
Repository URL: git://github.com/jenkinsci/git-client-plugin.git
Branches to build: tests/getSubmodules
Build Triggers > Poll SCM is enabled
I execute
curl -s http://myjenkinssrv/jenkins/git/notifyCommit -d url=git://github.com/jenkinsci/git-client-plugin.git -d branches=tests/getSubmodules
and I get
No git jobs using repository: git://github.com/jenkinsci/git-client-plugin.git and branches: tests/getSubmodules
This is wrong! If I configure my job with "Branches to build"=master and call
curl -s http://myjenkinssrv/jenkins/git/notifyCommit -d url=git://github.com/jenkinsci/git-client-plugin.git -d branches=master
it works, as expected.
---
Originally reported by ludwig, imported from: notifyCommit branch parameter can't contain slashes
Raw content of original issue
I have a simple Jenkins job called "myjob":
Repository URL: git://github.com/jenkinsci/git-client-plugin.git
Branches to build: tests/getSubmodules
Build Triggers > Poll SCM is enabledI execute
curl -s http://myjenkinssrv/jenkins/git/notifyCommit -d url=git://github.com/jenkinsci/git-client-plugin.git -d branches=tests/getSubmodules
and I get
No git jobs using repository: git://github.com/jenkinsci/git-client-plugin.git and branches: tests/getSubmodules
This is wrong! If I configure my job with "Branches to build"=master and call
curl -s http://myjenkinssrv/jenkins/git/notifyCommit -d url=git://github.com/jenkinsci/git-client-plugin.git -d branches=master
it works, as expected.
- environment:
Jenkins 1.620, Git Plugin 2.4.0
Contributor guide
Assessment
This issue has not been assessed yet.