jenkinsci / jenkinsci/git-plugin

[JENKINS-43766] Git commit notification does not work for references

Open
#3,086 1 comment 0 reactions 0 assignees View on GitHub
component:git-plugin imported-jira-issue priority:major resolution:unresolved
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


  • status: Open
  • priority: Major
  • component(s): git-plugin
  • label(s): git
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 2025-12-02

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

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.