jenkinsci / jenkinsci/git-plugin

[JENKINS-48060] Jenkins does not poll anotated tag correctly. Stuck on build loop

Open
#3,227 0 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

Jenkins does not correctly track changes when annotated tag created.

It always seeing changes as compare revision hashes which belongs to tag and tag^{}. So they sure different and then it run build.

Git plugin in Job configured with following:

Refspec: +refs/tags/ci

Branch Specifier: refs/tags/ci

Honor refspec on initial clone: checked

 

 

Started on Nov 16, 2017 2:37:00 PM

Using strategy: Default

[poll] Last Built Revision: Revision 18ed54130aa7b27b21dc6565ccb2cd2aaeb3c74b (refs/tags/ci)

> git --version # timeout=10

using GIT_ASKPASS to set credentials Jenkins GIT Cred

> git ls-remote -h https://*****/tst.tst # timeout=10

Found 24 remote heads on https://****/tst.tst

Ignoring refs/tags/tag11 as it doesn't match any of the configured refspecs

Ignoring HEAD as it doesn't match any of the configured refspecs

Ignoring refs/tags/ci^{} as it doesn't match any of the configured refspecs

[poll] Latest remote head revision on refs/tags/ci is: 05ee922a20db1039c642e89151b8f03217534833

Done. Took 0.43 sec

Changes found

 

 

Here is list of tags:

-bash-4.2$ git ls-remote -h *****

Username for '****

Password for '****

18ed54130aa7b27b21dc6565ccb2cd2aaeb3c74b HEAD

766ea2db2510272683ed6410588c43b750709b1d refs/heads/alexb

18ed54130aa7b27b21dc6565ccb2cd2aaeb3c74b refs/heads/master

05ee922a20db1039c642e89151b8f03217534833 refs/tags/ci

18ed54130aa7b27b21dc6565ccb2cd2aaeb3c74b refs/tags/ci^{}

 

---
Originally reported by progman, imported from: Jenkins does not poll anotated tag correctly. Stuck on build loop


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

Raw content of original issue

Jenkins does not correctly track changes when annotated tag created.

It always seeing changes as compare revision hashes which belongs to tag and tag^{}. So they sure different and then it run build.

Git plugin in Job configured with following:

Refspec: +refs/tags/ci

Branch Specifier: refs/tags/ci

Honor refspec on initial clone: checked

 

 

Started on Nov 16, 2017 2:37:00 PM
Using strategy: Default
[poll] Last Built Revision: Revision 18ed54130aa7b27b21dc6565ccb2cd2aaeb3c74b (refs/tags/ci)
> git --version # timeout=10
using GIT_ASKPASS to set credentials Jenkins GIT Cred
> git ls-remote -h https://*****/tst.tst # timeout=10
Found 24 remote heads on https://****/tst.tst
Ignoring refs/tags/tag11 as it doesn't match any of the configured refspecs
Ignoring HEAD as it doesn't match any of the configured refspecs
Ignoring refs/tags/ci^{} as it doesn't match any of the configured refspecs
[poll] Latest remote head revision on refs/tags/ci is: 05ee922a20db1039c642e89151b8f03217534833
Done. Took 0.43 sec
Changes found

 

 

Here is list of tags:

-bash-4.2$ git ls-remote -h *****
Username for '****
Password for '****
18ed54130aa7b27b21dc6565ccb2cd2aaeb3c74b HEAD
766ea2db2510272683ed6410588c43b750709b1d refs/heads/alexb
18ed54130aa7b27b21dc6565ccb2cd2aaeb3c74b refs/heads/master
05ee922a20db1039c642e89151b8f03217534833 refs/tags/ci
18ed54130aa7b27b21dc6565ccb2cd2aaeb3c74b refs/tags/ci^{}

 

environment

```
Jenkins 2.89 + fully updated plugins

Centos 7

```

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.