[JIRA] (JENKINS-58337) Promotion Console Log

19 views
Skip to first unread message

felipel2002@yahoo.com.br (JIRA)

unread,
Jul 4, 2019, 3:19:01 AM7/4/19
to jenkinsc...@googlegroups.com
Felipe Leite created an issue
 
Jenkins / Bug JENKINS-58337
Promotion Console Log
Issue Type: Bug Bug
Assignee: Oleg Nenashev
Attachments: image-2019-07-04-17-16-27-449.png
Components: promoted-builds-plugin
Created: 2019-07-04 07:18
Priority: Minor Minor
Reporter: Felipe Leite

Promotion console log is showing build log. This started to happen after the plugins update I did.

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

a.mcgilvray@gmail.com (JIRA)

unread,
Jul 8, 2019, 8:39:03 PM7/8/19
to jenkinsc...@googlegroups.com
Andrew McGilvray commented on Bug JENKINS-58337
 
Re: Promotion Console Log

Downgrade to 3.2 fixes the issue.

ashetty@ensocare.com (JIRA)

unread,
Aug 1, 2019, 11:56:19 AM8/1/19
to jenkinsc...@googlegroups.com
Rita S updated an issue
Change By: Rita S
Attachment: image-2019-08-01-10-53-08-973.png

ashetty@ensocare.com (JIRA)

unread,
Aug 1, 2019, 11:56:22 AM8/1/19
to jenkinsc...@googlegroups.com
Rita S commented on Bug JENKINS-58337
 
Re: Promotion Console Log

How do I downgrade the plugin, I don't see the downgrade button.

a.mcgilvray@gmail.com (JIRA)

unread,
Aug 1, 2019, 8:44:02 PM8/1/19
to jenkinsc...@googlegroups.com
Andrew McGilvray updated an issue
Change By: Andrew McGilvray
Attachment: jenkins_downgrade.png

a.mcgilvray@gmail.com (JIRA)

unread,
Aug 1, 2019, 8:44:04 PM8/1/19
to jenkinsc...@googlegroups.com
Andrew McGilvray commented on Bug JENKINS-58337
 
Re: Promotion Console Log

Are you in the "Installed" tab?

felipel2002@yahoo.com.br (JIRA)

unread,
Sep 3, 2019, 9:43:03 PM9/3/19
to jenkinsc...@googlegroups.com
Felipe Leite commented on Bug JENKINS-58337
 
Re: Promotion Console Log

Thanks Andrew. I did that. but the idea was publish here to get fixed.

thomas.sondergaard@karoshealth.com (JIRA)

unread,
Sep 10, 2019, 4:40:03 AM9/10/19
to jenkinsc...@googlegroups.com
tsondergaard commented on Bug JENKINS-58337
 
Re: Promotion Console Log

I am seeing the same problem and downgrading to 3.2 does indeed solve the problem.

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

froque@premium-minds.com (JIRA)

unread,
Sep 23, 2019, 12:01:03 PM9/23/19
to jenkinsc...@googlegroups.com
Filipe Roque commented on Bug JENKINS-58337
 
Re: Promotion Console Log

I wasted some time with this bug. From what I can tell, the bug was introduced with commit 0a9e67654a0f072601fb3a24d420c3c09ebfd843, when upgrading jenkins.version property from 2.60.3 to 2.138.4.

It happens because of commit ba33bd67cdaef87aba8a4e95dca8dcf108a7d73f , in 2.138.2, which added an interface StaplerProxy to class Run. This interface defines a method Object getTarget() with an implementation in class Run.

The Promotion class, which derives from Run, also has a method getTarget but with return type AbstractBuild<?,?>, so a synthetic method, with return type Object, is created by the compiler which invokes AbstractBuild<?,?> getTarget().

 

javap -v ./promoted-builds-2.138.2/WEB-INF/lib/promoted-builds/hudson/plugins/promoted_builds/Promotion.class

  public hudson.model.AbstractBuild<?, ?> getRootBuild();
    descriptor: ()Lhudson/model/AbstractBuild;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
         0: aload_0
         1: invokevirtual #9                  // Method getTarget:()Lhudson/model/AbstractBuild;
         4: invokevirtual #10                 // Method hudson/model/AbstractBuild.getRootBuild:()Lhudson/model/AbstractBuild;
         7: areturn
      LineNumberTable:
        line 93: 0
      LocalVariableTable:
        Start  Length  Slot  Name   Signature
            0       8     0  this   Lhudson/plugins/promoted_builds/Promotion;
    Signature: #185                         // ()Lhudson/model/AbstractBuild<**>;

 

Renaming AbstractBuild<?,?> getTarget()  to AbstractBuild<?,?> getTarget2() fixes the bug, but I have no idea of its impacts because of the @Exported annotation.

Note: the new Object getTarget() method in Run as an annotation @Restricted(NoExternalUse.class)  but I don't understand its meaning.

 

 

dbeck@cloudbees.com (JIRA)

unread,
Oct 7, 2019, 11:47:05 AM10/7/19
to jenkinsc...@googlegroups.com
Daniel Beck closed an issue as Duplicate
 

I proposed a PR fixing this as JENKINS-59600 so closing this as a duplicate of that later issue.

FWIW the previous comment's analysis appears correct and that's essentially what my fix does (while keeping the remote API the same).

Change By: Daniel Beck
Status: Open Closed
Resolution: Duplicate

o.v.nenashev@gmail.com (JIRA)

unread,
Oct 7, 2019, 8:13:06 PM10/7/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages