jenkinsci / jenkinsci/git-plugin

[JENKINS-22457] Git push will trigger a build even though no path matches included regions

Open
#2,452 7 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

Git push will trigger a build even though no path matches included regions.

I have the following GIT polling configuration:

------------------------------------------------

Included regions: scripts/.*

Excluded regions:

Force polling using workspace: YES

Polling Log:

----------------

View as plain text

This page captures the polling log that triggered this build.

Started on Apr 2, 2014 11:23:32 AM

Polling SCM changes on master

Using strategy: Default

[poll] Last Built Revision: Revision 53859d4feaa11d51f08dc73497df4ec6cef95a86 (origin/master)

Fetching changes from the remote Git repositories

Fetching upstream changes from git@​idc-git.video54.local:sci-dev/sci-2-0.git

using GIT_SSH to set credentials

Polling for changes in

Ignored commit d1edfe2105602ff3ac75be0ae746764387852d64: Found only excluded paths:

Done. Took 4.7 sec

Changes found

GIT change d1edfe210* contains the following file:

---------------------------------------------------

build/build-repo.sh

Please tell whether you need more information from me.

---
Originally reported by spektom, imported from: Git push will trigger a build even though no path matches included regions


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

Raw content of original issue

Git push will trigger a build even though no path matches included regions.

I have the following GIT polling configuration:
------------------------------------------------

Included regions: scripts/.*
Excluded regions: <empty>
Force polling using workspace: YES

Polling Log:
----------------
View as plain text
This page captures the polling log that triggered this build.

Started on Apr 2, 2014 11:23:32 AM
Polling SCM changes on master
Using strategy: Default
[poll] Last Built Revision: Revision 53859d4feaa11d51f08dc73497df4ec6cef95a86 (origin/master)
Fetching changes from the remote Git repositories
Fetching upstream changes from git@idc-git.video54.local:sci-dev/sci-2-0.git
using GIT_SSH to set credentials
Polling for changes in
Ignored commit d1edfe2105602ff3ac75be0ae746764387852d64: Found only excluded paths:
Done. Took 4.7 sec
Changes found

GIT change d1edfe210* contains the following file:
---------------------------------------------------

build/build-repo.sh

Please tell whether you need more information from me.

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.