jenkinsci / jenkinsci/github-branch-source-plugin

[JENKINS-50522] New jobs not validating github webhook filters

Open
#1,176 1 comment 0 reactions 0 assignees View on GitHub
component:github-branch-source-plugin component:github-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
217
Forks
398
Avg merge
30m
Merged PRs (30d)
1

Description

We have a Github repo that can trigger multiple builds based on certain filters.  The most obvious one is the branch and then some are filtered down based on the Included Regions filter (ie Jenkins is triggered based on which path files are committed to).  As an example:



  • App-AuthAPI

  • App-LookupAPI

  • App-DBAPI

Each one is from the same repo however, App-DBAPI was added recently and is triggered no matter what happens (random branch is deleted, a commit to a completely different branch).  I have a test build that I modified and that worked fine based on filters.  When I created anything new, none of the filters are respected.

I restarted Jenkins and the filters are fine for about 10 minutes before it goes back to triggering for every event in the repo.  I've tested cloning projects, to recreating from scratch, to doing the most basic thing (ie random string branch that doesn't actually exist) and it's still triggering the build no matter what.

The regular jenkins log just shows that it's poking each project and then triggers App-DBAPI but without reason.  I've tried enabling extra logging in https://jenkins.com/log but there's a lot of noise

---
Originally reported by nocode, imported from: New jobs not validating github webhook filters


  • assignee: lanwen
  • status: Open
  • priority: Major
  • component(s): github-branch-source-plugin, github-plugin
  • label(s): jenkins, plugin, scm, triaged-2018-11
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 2025-12-02

Raw content of original issue

We have a Github repo that can trigger multiple builds based on certain filters.  The most obvious one is the branch and then some are filtered down based on the Included Regions filter (ie Jenkins is triggered based on which path files are committed to).  As an example:



  • App-AuthAPI

  • App-LookupAPI

  • App-DBAPI

Each one is from the same repo however, App-DBAPI was added recently and is triggered no matter what happens (random branch is deleted, a commit to a completely different branch).  I have a test build that I modified and that worked fine based on filters.  When I created anything new, none of the filters are respected.

I restarted Jenkins and the filters are fine for about 10 minutes before it goes back to triggering for every event in the repo.  I've tested cloning projects, to recreating from scratch, to doing the most basic thing (ie random string branch that doesn't actually exist) and it's still triggering the build no matter what.

The regular jenkins log just shows that it's poking each project and then triggers App-DBAPI but without reason.  I've tried enabling extra logging in https://jenkins.com/log but there's a lot of noise

environment

```
Jenkins ver. 2.89.4

Github Branch Source Plugin: 2.3.3

Github Plugin: 1.29.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.