jenkinsci / jenkinsci/git-plugin

[JENKINS-22861] build is not triggered automatically if branch specifier contains wildcards

Open
#2,470 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 create a free-style software project, and config branch specifier to "*/feature/**" in order to build automatically when Stash receives a push to those branches. Git Plugin receives the NotifyCommit:

Triggering the polling of xxx

But nothing happens as expected, except the first initialise fetch.

When changing branch specifier to 'origin/feature/category' or '*/master', everything goes well. 'SCM changes detected' appears on System log.

The screenshot attachments are configs of my project.

I can't figure out what's going wrong, please help me.

---
Originally reported by springuper, imported from: build is not triggered automatically if branch specifier contains wildcards


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

Raw content of original issue

I create a free-style software project, and config branch specifier to "*/feature/**" in order to build automatically when Stash receives a push to those branches. Git Plugin receives the NotifyCommit:


Triggering the polling of xxx


But nothing happens as expected, except the first initialise fetch.

When changing branch specifier to 'origin/feature/category' or '*/master', everything goes well. 'SCM changes detected' appears on System log.

The screenshot attachments are configs of my project.

I can't figure out what's going wrong, please help me.

  • environment: git plugin 2.2.1

3 attachments

- [QQ20140504-1.png](https://raw.githubusercontent.com/jenkinsci/attachments-from-jira-issues-last/refs/heads/main/attachments/25764/QQ20140504-1.png)
> ![QQ20140504-1.png](https://raw.githubusercontent.com/jenkinsci/attachments-from-jira-issues-last/refs/heads/main/attachments/25764/QQ20140504-1.png)
- [QQ20140504-2.png](https://raw.githubusercontent.com/jenkinsci/attachments-from-jira-issues-misc/refs/heads/main/attachments/25763/QQ20140504-2.png)
> ![QQ20140504-2.png](https://raw.githubusercontent.com/jenkinsci/attachments-from-jira-issues-misc/refs/heads/main/attachments/25763/QQ20140504-2.png)
- [QQ20140504-3.png](https://raw.githubusercontent.com/jenkinsci/attachments-from-jira-issues-misc/refs/heads/main/attachments/25762/QQ20140504-3.png)
> ![QQ20140504-3.png](https://raw.githubusercontent.com/jenkinsci/attachments-from-jira-issues-misc/refs/heads/main/attachments/25762/QQ20140504-3.png)

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.