[JIRA] (JENKINS-40025) Conflict active-choices-plugin with jquery-plugin

185 views
Skip to first unread message

burtsevyg@mail.ru (JIRA)

unread,
Nov 24, 2016, 6:14:03 PM11/24/16
to jenkinsc...@googlegroups.com
Yuriy Burtsev created an issue
 
Jenkins / Bug JENKINS-40025
Conflict active-choices-plugin with jquery-plugin
Issue Type: Bug Bug
Assignee: Bruno P. Kinoshita
Components: active-choices-plugin, jquery-plugin, sonar
Created: 2016/Nov/24 11:13 PM
Environment: Jenkins 2.19.3
active-choices-plugin 1.5.2
jquery plugin 1.11.2-0
sonar plugin 2.5
Labels: plugin plugins
Priority: Critical Critical
Reporter: Yuriy Burtsev

active-choices-plugin with jquery-plugin does not update data in Active Choices Reactive Parameter.
Example Jenkinsfile:
properties([parameters([booleanParam(defaultValue: false, description: '', name: 'RELEASE'), [$class: 'CascadeChoiceParameter', choiceType: 'PT_SINGLE_SELECT', description: '', filterable: false, name: 'TEST', randomName: 'choice-parameter-123', referencedParameters: 'RELEASE', script: [$class: 'GroovyScript', fallbackScript: [classpath: [], sandbox: false, script: ''], script: [classpath: [], sandbox: false, script: '''

if (RELEASE.equals(\'on\'))

{ return ['xtrue',RELEASE] }

else

{ return ['xfalse',RELEASE] }

''']]]]), pipelineTriggers([])])

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

burtsevyg@mail.ru (JIRA)

unread,
Nov 24, 2016, 6:16:01 PM11/24/16
to jenkinsc...@googlegroups.com
Yuriy Burtsev updated an issue
Change By: Yuriy Burtsev
active-choices-plugin with jquery-plugin does not update data in Active Choices Reactive Parameter.
Example Jenkinsfile:

{code:java}
properties([parameters([booleanParam(defaultValue: false, description: '', name: 'RELEASE'), [$class: 'CascadeChoiceParameter', choiceType: 'PT_SINGLE_SELECT', description: '', filterable: false, name: 'TEST', randomName: 'choice-parameter-123', referencedParameters: 'RELEASE', script: [$class: 'GroovyScript', fallbackScript: [classpath: [], sandbox: false, script: ''], script: [classpath: [], sandbox: false, script: '''

if (RELEASE.equals(\'on\')){
return ['xtrue',RELEASE] }
else{
return ['xfalse',RELEASE]
}
''']]]]), pipelineTriggers([])])

{code}

burtsevyg@mail.ru (JIRA)

unread,
Nov 24, 2016, 6:17:01 PM11/24/16
to jenkinsc...@googlegroups.com
Yuriy Burtsev updated an issue
active-choices-plugin with jquery-plugin (which needed for sonar plugin) does not update data in Active Choices Reactive Parameter.

Example Jenkinsfile:

{code:java}
properties([parameters([booleanParam(defaultValue: false, description: '', name: 'RELEASE'), [$class: 'CascadeChoiceParameter', choiceType: 'PT_SINGLE_SELECT', description: '', filterable: false, name: 'TEST', randomName: 'choice-parameter-123', referencedParameters: 'RELEASE', script: [$class: 'GroovyScript', fallbackScript: [classpath: [], sandbox: false, script: ''], script: [classpath: [], sandbox: false, script: '''

if (RELEASE.equals(\'on\')){
return ['xtrue',RELEASE] }
else{
return ['xfalse',RELEASE]
}
''']]]]), pipelineTriggers([])])
{code}
After remove jquery-plugin all work perfect.

brunodepaulak@yahoo.com.br (JIRA)

unread,
Nov 26, 2016, 7:02:02 PM11/26/16
to jenkinsc...@googlegroups.com

brunodepaulak@yahoo.com.br (JIRA)

unread,
Nov 26, 2016, 7:02:02 PM11/26/16
to jenkinsc...@googlegroups.com
Bruno P. Kinoshita commented on Bug JENKINS-40025
 
Re: Conflict active-choices-plugin with jquery-plugin

HI Yuriy Burtsev

I have used other plug-ins that depend on jquery-plugin with active-choices-plugin, and it worked well, even after uninstalling the plug-ins. I remember seeing a similar issue, but if I recall correctly, it was closed as not a defect.

The sonarqube-plugin uses the jquery-plugin as a Maven dependency

https://github.com/jenkinsci/sonarqube-plugin/blob/2506455aa5b8af909df5f9c1c6b25bdfd2552265/pom.xml#L160

And the jquery-plugin is using an adjunct jquery https://github.com/stapler/stapler-adjunct-jquery which active-choices is also using. Jenkins should take care of plug-in dependencies, to avoid uninstalling plug-ins used by other plug-ins, and the adjunct takes care to load the library just once. So everything should work... but we could have a bug

>active-choices-plugin with jquery-plugin (which needed for sonar plugin) does not update data in Active Choices Reactive Parameter.

Righto.

> Example Jenkinsfile:

Could you confirm it happens without Jenkinsfile or workflow/pipeline plug-in, please? See https://issues.jenkins-ci.org/browse/JENKINS-28735 for example. There are other issues with the pipeline plug-in, but the plugin needs to have access to the browser DOM, more specifically that one created for the build with parameters screen.

>After remove jquery-plugin all work perfect.

Could you confirm that, without pipelines, please?

burtsevyg@mail.ru (JIRA)

unread,
Nov 26, 2016, 7:39:02 PM11/26/16
to jenkinsc...@googlegroups.com

Yes you are right.
I cannot reproduce this with jenkins docker container from docker hub.
I install default plugins than jquery and sonarqube and active choice work good!
But on my production Jenkins server it reproduce all the time.

In all test I using pipeline script:

properties([parameters([booleanParam(defaultValue: false, description: '', name: 'RELEASE'), [$class: 'CascadeChoiceParameter', choiceType: 'PT_SINGLE_SELECT', description: '', filterable: false, name: 'TEST', randomName: 'choice-parameter-123', referencedParameters: 'RELEASE', script: [$class: 'GroovyScript', fallbackScript: [classpath: [], sandbox: false, script: ''], script: [classpath: [], sandbox: false, script: '''

if (RELEASE.equals(\'on\')){
return ['xtrue',RELEASE] }
else{
return ['xfalse',RELEASE]
}
''']]]]), pipelineTriggers([])])

burtsevyg@mail.ru (JIRA)

unread,
Nov 26, 2016, 7:40:01 PM11/26/16
to jenkinsc...@googlegroups.com
Yuriy Burtsev edited a comment on Bug JENKINS-40025
Yes you are right.
I cannot reproduce this with jenkins docker container from docker hub.
I install default plugins than jquery and sonarqube and active choice work good!
But on my production Jenkins server it reproduce all the time.

In all the tests I using use pipeline script:


{code:java}

properties([parameters([booleanParam(defaultValue: false, description: '', name: 'RELEASE'), [$class: 'CascadeChoiceParameter', choiceType: 'PT_SINGLE_SELECT', description: '', filterable: false, name: 'TEST', randomName: 'choice-parameter-123', referencedParameters: 'RELEASE', script: [$class: 'GroovyScript', fallbackScript: [classpath: [], sandbox: false, script: ''], script: [classpath: [], sandbox: false, script: '''

if (RELEASE.equals(\'on\')){
return ['xtrue',RELEASE] }
else{
return ['xfalse',RELEASE]
}
''']]]]), pipelineTriggers([])])
{code}

burtsevyg@mail.ru (JIRA)

unread,
Nov 26, 2016, 7:40:01 PM11/26/16
to jenkinsc...@googlegroups.com
Yuriy Burtsev edited a comment on Bug JENKINS-40025
Yes you are right.
I cannot reproduce this with jenkins docker container from docker hub.
I install default plugins than jquery and sonarqube and active choice work good!
But on my production Jenkins server it reproduce all the time.

In all test the tests I using pipeline script:



{code:java}
properties([parameters([booleanParam(defaultValue: false, description: '', name: 'RELEASE'), [$class: 'CascadeChoiceParameter', choiceType: 'PT_SINGLE_SELECT', description: '', filterable: false, name: 'TEST', randomName: 'choice-parameter-123', referencedParameters: 'RELEASE', script: [$class: 'GroovyScript', fallbackScript: [classpath: [], sandbox: false, script: ''], script: [classpath: [], sandbox: false, script: '''

if (RELEASE.equals(\'on\')){
return ['xtrue',RELEASE] }
else{
return ['xfalse',RELEASE]
}
''']]]]), pipelineTriggers([])])
{code}

burtsevyg@mail.ru (JIRA)

unread,
Nov 26, 2016, 7:41:03 PM11/26/16
to jenkinsc...@googlegroups.com

brunodepaulak@yahoo.com.br (JIRA)

unread,
Nov 26, 2016, 9:32:04 PM11/26/16
to jenkinsc...@googlegroups.com

I think so Yuriy Burtsev. I will keep an eye on issues like this, as you are not the first to report something similar. In the end it proved to be hard to reproduce, but we may have a hidden bug, or one that gets triggered only under specific circumstances. Let's close it, and we can re-open or file a new bug if that re-appears.

Thank you!
Bruno

brunodepaulak@yahoo.com.br (JIRA)

unread,
Nov 26, 2016, 9:32:04 PM11/26/16
to jenkinsc...@googlegroups.com
Bruno P. Kinoshita resolved as Cannot Reproduce
Change By: Bruno P. Kinoshita
Status: Open Resolved
Resolution: Cannot Reproduce

burtsevyg@mail.ru (JIRA)

unread,
Nov 22, 2018, 3:49:05 AM11/22/18
to jenkinsc...@googlegroups.com
Yuriy Burtsev closed an issue as Cannot Reproduce
Change By: Yuriy Burtsev
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages