[JIRA] (JENKINS-58907) Wrong tag determined on commit with multiple tags

5 views
Skip to first unread message

klass@ite-web.de (JIRA)

unread,
Aug 13, 2019, 8:35:03 AM8/13/19
to jenkinsc...@googlegroups.com
Jan Klass created an issue
 
Jenkins / Bug JENKINS-58907
Wrong tag determined on commit with multiple tags
Issue Type: Bug Bug
Assignee: Christopher Orr
Components: git-tag-message-plugin
Created: 2019-08-13 12:34
Priority: Major Major
Reporter: Jan Klass

The git additional behavior step this plugin introduces help text says:

If the revision has more than one tag associated with it, only the most recent tag will be taken into account, unless the refspec contains "refs/tags/" — i.e. builds are only triggered when certain tag names or patterns are matched — in which case the exact tag name that triggered the build will be used, even if it's not the most recent tag for this commit.

So if a tag has multiple commits, but has a refspec that “contains” refs/tags/,
if the build is triggered with a specific tag (git push hook) then that tag is being used.

However, this is not the case. It seems to use the first tag after alphabetically sorting them.

I have a commit with five tags which I pushed one after the other individually to test. Instead of the last one I pushed (nr 5) it built the first tag I had pushed.

Pushing another test tag that would be alpha-numerically-sorted before the other tag it did build the pushed tag.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

klass@ite-web.de (JIRA)

unread,
Aug 13, 2019, 8:42:01 AM8/13/19
to jenkinsc...@googlegroups.com
Jan Klass commented on Bug JENKINS-58907
 
Re: Wrong tag determined on commit with multiple tags

The behavior I described seems to indicate another bug: Not the “most recent tag” is being used, but the alphanumerical first - which for version numbers is the oldest one. (What does most recent mean? how is most recent determined? a tag reference has no date. Only tag objects do.)

I have not verified if this is generally wrong or only in this bugs use case and context (triggered with tag ref).

Reply all
Reply to author
Forward
0 new messages