jenkinsci / jenkinsci/git-plugin

[JENKINS-28149] "Excluded Users" option doesn't work with multiple branches specified in "Branch Specifier"

Open
#2,649 4 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 specified two branches separately in "Branch Specifier" option as below:

Branch Specifier(blank for 'any'): */master

Branch Specifier(blank for 'any'): */develop

I also specified two Excluded users under the "Polling ignores commits from certain users' option, show as following:

Excluded Users:

James

Kobe

Then when James push his changes to either */master or */develop branches, jenkins would still trigger a build, same happened with user Kobe, which is unreasonable.

Based on my understanding, jenkins should not trigger a build since both James and Kobe are whithin the excluded user list. This is definitely a bug, hope someone will fix it soon, thank you all!

---
Originally reported by neteaser007, imported from: "Excluded Users" option doesn't work with multiple branches specified in "Branch Specifier"


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

Raw content of original issue

I specified two branches separately in "Branch Specifier" option as below:
Branch Specifier(blank for 'any'): */master
Branch Specifier(blank for 'any'): */develop

I also specified two Excluded users under the "Polling ignores commits from certain users' option, show as following:
Excluded Users:
James
Kobe

Then when James push his changes to either */master or */develop branches, jenkins would still trigger a build, same happened with user Kobe, which is unreasonable.

Based on my understanding, jenkins should not trigger a build since both James and Kobe are whithin the excluded user list. This is definitely a bug, hope someone will fix it soon, thank you all!

environment

```
jenkins ver: 1.589

git plugin: 2.3.5
```

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.