-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins 2.89 + fully updated plugins
Centos 7
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^{}
[JENKINS-48060] Jenkins does not poll anotated tag correctly. Stuck on build loop
Assignee | Original: Mark Waite [ markewaite ] |
Description |
Original:
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. 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^\{} |
New:
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^\{} |