[JIRA] (JENKINS-58195) promoted builds plugin incompatible with Artifactory plugin

14 views
Skip to first unread message

whoha42@gmail.com (JIRA)

unread,
Jun 25, 2019, 5:03:02 PM6/25/19
to jenkinsc...@googlegroups.com
Chris Warren created an issue
 
Jenkins / Bug JENKINS-58195
promoted builds plugin incompatible with Artifactory plugin
Issue Type: Bug Bug
Assignee: Oleg Nenashev
Components: promoted-builds-plugin
Created: 2019-06-25 21:02
Priority: Minor Minor
Reporter: Chris Warren

When using the Artifactory plugin, the promoted-builds plugin, version 3.3, is not compatible. Having it installed results in being unable to configure artifactory plugin settings in job configurations. Specifically the target repository drop down field will not populate, even after a successful api call to retrieve the available repositories. Also, the upload URL field is duplicated on the screen.

 

Downgrading promoted-builds plugin to version 3.2 resolved this problem.

 

This happened with multiple recent artifactory plugin versions. Same behavior each time.

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

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

unread,
Jun 26, 2019, 7:44:02 AM6/26/19
to jenkinsc...@googlegroups.com
Oleg Nenashev commented on Bug JENKINS-58195
 
Re: promoted builds plugin incompatible with Artifactory plugin

Please provide screenshots and system logs for the instance after the upgrade.

Artifactory plugin is a huge monster, and I am not sure what particular setting is broken by the update

whoha42@gmail.com (JIRA)

unread,
Jun 26, 2019, 9:40:02 AM6/26/19
to jenkinsc...@googlegroups.com
Chris Warren updated an issue
 
Change By: Chris Warren
Attachment: Artifactory-plugin-broken.PNG

whoha42@gmail.com (JIRA)

unread,
Jun 26, 2019, 9:49:02 AM6/26/19
to jenkinsc...@googlegroups.com

whoha42@gmail.com (JIRA)

unread,
Jun 26, 2019, 9:50:02 AM6/26/19
to jenkinsc...@googlegroups.com
Chris Warren commented on Bug JENKINS-58195
 
Re: promoted builds plugin incompatible with Artifactory plugin

Jenkins version is 2.176.1.

 

With promoted-builds version 3.3 installed on the system, the configure page on any job using the Artifactory plugin looks like the attached, with duplicated upload and download url fields. The Different Value button does not work. When the Refresh Repositories button is clicked, we can see a successful api call to retrieve them, but the drop down to display the list of repos does not work. This happens for all tested version of the artifactory plugin, but we are currently using 3.3.0.

 

The attached js exception screenshot occurred on load of the job configure page when the problematic configuration was active.

 

The workaround on our setup is to downgrade promoted-builds 3.3 to version 3.2. Then it behaves as expected.

matt.wilson@entrust.com (JIRA)

unread,
Jun 28, 2019, 2:57:03 PM6/28/19
to jenkinsc...@googlegroups.com

I had the exact same issue, same other plugin versions as well.  Rolling back to 3.2 got me working again.

Unfortunately I don't have any screen shots to show.  Going from memory, the configuration buttons where all messed up on the artifactory side of things.  The biggest problem was when using the generic artifactory feature.  Some input fields where displayed twice.  The select different value button was a fraction of its normal size.  No repositories could be listed..  It also seemed to flip my builds configuration from spec file to legacy mode.

The gradle artifactory integration looked fairly normal, but all the functionality was broken.  i.e. you couldn't list repos or make any selections in the drop downs.

sorry, for the jumbled info...

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

unread,
Jul 1, 2019, 8:32:05 AM7/1/19
to jenkinsc...@googlegroups.com

patrick.schlebusch@kisters.de (JIRA)

unread,
Jul 1, 2019, 11:53:03 AM7/1/19
to jenkinsc...@googlegroups.com
Patrick Schlebusch commented on Bug JENKINS-58195
 
Re: promoted builds plugin incompatible with Artifactory plugin

I had a look at the artifactory plugin code. It seems the plugin assumes that all UI elements can only exist once in the DOM. Found lots of getElementById calls which would explain why everything looks messed up.

The input fields being displayed twice is because it displays the inputs for generic as well as spec configuration, whereas normally only one of them would be shown and the other inputs would be hidden.

Not sure what's the best way to proceed here.. Oleg Nenashev What would you suggest? Is this something that should be handled/fixed in the promoted builds plugin? A possible fix/workaround would be to whitelist compatible wrappers - although to me it doesn't feel like the right solution as well..

 

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

unread,
Jul 1, 2019, 12:18:04 PM7/1/19
to jenkinsc...@googlegroups.com

> I had a look at the artifactory plugin code. It seems the plugin assumes that all UI elements can only exist once in the DOM. Found lots of getElementById calls which would explain why everything looks messed up.

Thanks for the investigation Patrick Schlebusch!

Wr.t. the Artifactory plugin, this is not how Jenkins plugins should be designed. Not the first case for the Artifactory plugin, actually. It is not a responsibility of this plugin to fix bogus assumptions in other plugins. I will assign the issue to the Artifactory plugin maintainers so that can take a look. Although I have some ideas how to fix that, unfortunately I cannot contribute to the Artifactory plugin due to its Contributor License Agreement restrictions. Whomever is am Artifactory pluin user, please feel free to bring up this issue with jFrog support. 

For Promoted Builds users, it should be less of a problem once the plugin supports Pipeline

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

unread,
Jul 1, 2019, 12:18:05 PM7/1/19
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
Change By: Oleg Nenashev
Component/s: artifactory-plugin
Component/s: promoted-builds-plugin
Reply all
Reply to author
Forward
0 new messages