jenkinsci / jenkinsci/git-plugin
[JENKINS-43766] Git commit notification does not work for references
- Dominant language
- Java
- Stars
- 694
- Forks
- 1.1k
- Avg merge
- 1h 29m
- Merged PRs (30d)
- 3
Description
I have several jobs configured with a branch specifier like refs/heads/. A post-receive hook from a git server triggers jobs by sending something like http:///git/notifyCommit?url=:&branches= to jenkins. The jobs are triggered if branch branchName is e.g. master but it does not work if branchName is refs/heads/master. I have checked the git polling protocol in jenkins.
---
Originally reported by tgb, imported from: Git commit notification does not work for references
Raw content of original issue
I have several jobs configured with a branch specifier like refs/heads/<branch>. A post-receive hook from a git server triggers jobs by sending something like http://<jenkins server>/git/notifyCommit?url=<git server>:<git repo>&branches=<branchName> to jenkins. The jobs are triggered if branch branchName is e.g. master but it does not work if branchName is refs/heads/master. I have checked the git polling protocol in jenkins.
environment
```
Jenkins 2.46.1
git plugin 3.3.0
```
Contributor guide
Assessment
This issue has not been assessed yet.