jenkinsci / jenkinsci/git-plugin

[JENKINS-29603] notifyCommit branch parameter can't contain slashes

Open
#2,692 19 comments 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 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


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

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 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.

  • environment: Jenkins 1.620, Git Plugin 2.4.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.