jenkinsci / jenkinsci/git-plugin
[JENKINS-32386] Polling Ignores Commits In Certain Paths feature fails to work when changes are merged from a branch onto the branch that is being polled
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 694
- Forks
- 1.1k
- Avg merge
- 1h 29m
- Merged PRs (30d)
- 3
Description
We use Polling Ignores Commits in Certain Paths option to poll for changes in a specific directory of the git repo. It works smooth until we merge changes from another branch onto the polled branch.
Even though the merged changes don't come under the Included Regions, builds get triggered.
Job Config looking for changes only under "harsha" directory.
![]()
Build triggered by changes polled under a different directory
![]()
Ideally even when the merge happens, the plugin should trigger changes based on the included regions.
Originally reported by sriharshadv, imported from: Polling Ignores Commits In Certain Paths feature fails to work when changes are merged from a branch onto the branch that is being polled
- status: Open
- priority: Minor
- component(s): git-plugin
- resolution: Unresolved
- votes: 8
- watchers: 11
- imported: 2025-12-02
Raw content of original issue
We use Polling Ignores Commits in Certain Paths option to poll for changes in a specific directory of the git repo. It works smooth until we merge changes from another branch onto the polled branch.
Even though the merged changes don't come under the Included Regions, builds get triggered.
Job Config looking for changes only under "harsha" directory.
Build triggered by changes polled under a different directory
Ideally even when the merge happens, the plugin should trigger changes based on the included regions.
- environment:
Jenkins - 1.580.3, Git Plugin - 2.4.1 (was seen in 2.4.0) too,
2 attachments
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in the git-plugin polling implementation and reproduce the case where a merge into the polled branch changes paths outside the configured "harsha" included region. Trace how polling evaluates merge changes, then add coverage for this scenario; done means builds trigger only when included regions changed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, java
- Domain
- ci-cd, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100