jenkinsci / jenkinsci/git-plugin

[JENKINS-61433] Manual SCM Polling for pipeline starts even though no changes on branch

Open
#3,532 5 comments 0 reactions 0 assignees View on GitHub
component:git-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

Manually setting a pipeline job to poll SCM is resulting in a build being triggered each and every time polling starts.

In reviewing logs, the only change I see is the TAG created by the build itself.  No other commits are in place.

Typical pipeline configuration is to poll SCM for change, build component, TAG the commit of the successful build, and post step will deleteDir() after each build.

While a tag is not seen as a commit, it is clear that in GIT, a tag is given a unique hash.

I have tried ignoring commits by the build user, but since the tag is not a code change, this does not work.

I have tried ignoring commits with messages, but since the tag is not seen as a commit, this does not work.

I have tried using a REGEX to ignore tags, however I am getting errors with the regex and illegal characters, so this has not worked either.

 

---
Originally reported by lbenhart, imported from: Manual SCM Polling for pipeline starts even though no changes on branch


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

Raw content of original issue

Manually setting a pipeline job to poll SCM is resulting in a build being triggered each and every time polling starts.

In reviewing logs, the only change I see is the TAG created by the build itself.  No other commits are in place.

Typical pipeline configuration is to poll SCM for change, build component, TAG the commit of the successful build, and post step will deleteDir() after each build.

While a tag is not seen as a commit, it is clear that in GIT, a tag is given a unique hash.

I have tried ignoring commits by the build user, but since the tag is not a code change, this does not work.

I have tried ignoring commits with messages, but since the tag is not seen as a commit, this does not work.

I have tried using a REGEX to ignore tags, however I am getting errors with the regex and illegal characters, so this has not worked either.

 

environment

```
Jenkins ver 2.204.2

git 4.0.0-rc

git-changelog 2.17

git-client 3.0.0-rc

git-server 1.7

github 1.29.4

github-api 1.95

github-branch-source 2.5.5

github-organization-folder 1.6

scm-api 2.6.3

workflow-scm-step 2.9

os.arch amd64

os.name Linux

os.version 3.10.0-1062.9.1.el7.x86_64

```

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.