[JIRA] (JENKINS-33476) copyartifact uses incorrect permalink for promoted build

15 views
Skip to first unread message

anthonylee.wallace@gmail.com (JIRA)

unread,
Aug 21, 2019, 1:31:02 PM8/21/19
to jenkinsc...@googlegroups.com
Tony Wallace updated an issue
 
Jenkins / Bug JENKINS-33476
copyartifact uses incorrect permalink for promoted build
Change By: Tony Wallace
Summary: copyatrifact copyartifact uses incorrect permalink for promoted build
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

anthonylee.wallace@gmail.com (JIRA)

unread,
Aug 21, 2019, 3:19:02 PM8/21/19
to jenkinsc...@googlegroups.com
Tony Wallace updated an issue
Change By: Tony Wallace
Attachment: a-JobConfig-1.PNG
Attachment: b-JobConfig-2.PNG
Attachment: c-RunTwoBuilds.PNG
Attachment: d-PromoteSecondBuildFirst.PNG
Attachment: e-PromoteSecondBuildFirst-console.PNG
Attachment: f-PromoteFirstBuildLast.PNG
Attachment: g-PromoteFirstBuildLast-console.PNG
Attachment: h-JobConfig-3-Workaround.PNG

anthonylee.wallace@gmail.com (JIRA)

unread,
Aug 21, 2019, 3:20:01 PM8/21/19
to jenkinsc...@googlegroups.com
Tony Wallace commented on Bug JENKINS-33476
 
Re: copyartifact uses incorrect permalink for promoted build

I encountered this problem independently.  The existing description seems accurate enough. 

I am providing a new test case to reproduce. It should take less than 15 minutes. See below, with attachments as noted. 

Jenkins 2.176.1

Promoted Builds Plugin 3.2 (downgraded from 3.3 because JENKINS-58337)

Copy Artifacts Plugin 1.42.1

Steps to reproduce

  • Create a new freestyle job with
    • 1 manual promotion including a copy artifacts step (a-JobConfig-1)
    • 1 archived artifact (b-JobConfig-2)
  • Run two builds
    • (c-RunTwoBuilds)
  • Manually promote the second build
    • (d-PromoteSecondBuildFirst, e-PromoteSecondBuildFirst-console)
  • Manually promote the first build
    • (f-PromoteFirstBuildLast, g-PromoteFirstBuildLast-console)

The log of the first build's promotion (g-PromoteFirstBuildLast-console) shows that the second build actually got promoted. 

 

Fortunately, there is a workaround for this bug that meets my requirements.  Instead of specifying "Which build" as "Specified by Permalink" with Permalink = <the Name of this Promotion Process>, I now use "Specific build" with build number = "${PROMOTED_NUMBER}"

 

Since this build selection method seems to do the job, and the "Permalink -> <the Promotion Process name>" build selection method can be misleading, perhaps it makes sense to remove the "Permalink -> <the Promotion Process name>" build selection method from CopyArtifacts. 

 

anthonylee.wallace@gmail.com (JIRA)

unread,
Aug 21, 2019, 3:22:02 PM8/21/19
to jenkinsc...@googlegroups.com
Change By: Tony Wallace
Resolution: Cannot Reproduce
Status: Resolved In Review

anthonylee.wallace@gmail.com (JIRA)

unread,
Aug 21, 2019, 4:04:05 PM8/21/19
to jenkinsc...@googlegroups.com
Tony Wallace updated an issue
Change By: Tony Wallace
Environment: Jenkins ver. 1.650 (
Copy Artifact Plugin  1.37
Promoted builds plugin  2.25

anthonylee.wallace@gmail.com (JIRA)

unread,
Aug 21, 2019, 4:06:01 PM8/21/19
to jenkinsc...@googlegroups.com
Tony Wallace updated an issue
Change By: Tony Wallace
Environment: Jenkins ver. 1.650 ( ,  2.176.1
Copy Artifact Plugin  1.37
, 1.42.1
Promoted builds plugin  2.25
,  3.2

devld@ikedam.jp (JIRA)

unread,
Mar 7, 2020, 2:08:03 AM3/7/20
to jenkinsc...@googlegroups.com
Change By: ikedam
Status: In Review Progress
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

devld@ikedam.jp (JIRA)

unread,
Mar 7, 2020, 2:08:04 AM3/7/20
to jenkinsc...@googlegroups.com
ikedam stopped work on Bug JENKINS-33476
 
Change By: ikedam
Status: In Progress Open

devld@ikedam.jp (JIRA)

unread,
Mar 7, 2020, 4:34:03 AM3/7/20
to jenkinsc...@googlegroups.com
 

This looks rather an issue of promoted-build plugin.

The permalink created by promoted-build points not the build that is promoted latest, but the latest build that is promoted.

  • Create a new job with "Promote builds when..."
  • Run the job twice. It generates build#1, build#2.
  • Promote #2.
  • Go to the job page, and check the permalink. It points #2.
  • Promote #1.
  • Go to the job page, and check the permalink. It still points #2.

I'm not sure this is a problematic behavior. It looks a designated behavior of promoted-build to me.
Anyway, this ticket is really old, and please create another ticket if you think this is a bug of promoted-build.

Change By: ikedam
Status: Open Fixed but Unreleased
Resolution: Not A Defect
Reply all
Reply to author
Forward
0 new messages