[JIRA] [active-choices-plugin] (JENKINS-32044) Fail to evaluate Boolean parameter to "on" when checked

174 views
Skip to first unread message

gil@tikalk.com (JIRA)

unread,
Dec 13, 2015, 2:59:02 AM12/13/15
to jenkinsc...@googlegroups.com
Gil Shinar created an issue
 
Jenkins / Bug JENKINS-32044
Fail to evaluate Boolean parameter to "on" when checked
Issue Type: Bug Bug
Assignee: Bruno P. Kinoshita
Attachments: config.xml
Components: active-choices-plugin
Created: 13/Dec/15 7:58 AM
Priority: Minor Minor
Reporter: Gil Shinar

When I try to use a Boolean parameter as a reference parameter to an Active Choice Reactive Parameter, it never evaluates to "on".
I am using Jenkins version: 1.625.1
I am using latest version of Active Parameter plugin
I am using jQuery plugin version: 1.11.2-0

Attached please find a example config.xml of a job I have tested on.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

gil@tikalk.com (JIRA)

unread,
Dec 13, 2015, 8:23:03 AM12/13/15
to jenkinsc...@googlegroups.com
Gil Shinar updated an issue
Change By: Gil Shinar
When I try to use a Boolean parameter as a reference parameter to an Active Choice Reactive Parameter, it never evaluates to "on". 
I am using Jenkins version: 1.625.1
I am using latest version of Active Parameter plugin  (1.2)
I am using jQuery plugin version: 1.11.2-0

Attached please find a example config.xml of a job I have tested on.

brunodepaulak@yahoo.com.br (JIRA)

unread,
Dec 19, 2015, 6:37:02 AM12/19/15
to jenkinsc...@googlegroups.com
Bruno P. Kinoshita commented on Bug JENKINS-32044
 
Re: Fail to evaluate Boolean parameter to "on" when checked

Could not reproduce it with 1.580.1. Trying with 1.625.3 now.

brunodepaulak@yahoo.com.br (JIRA)

unread,
Dec 19, 2015, 6:41:01 AM12/19/15
to jenkinsc...@googlegroups.com
Bruno P. Kinoshita edited a comment on Bug JENKINS-32044
Could not reproduce it with 1.580.1  without the JQuery plug-in . Trying with 1.625.3 now.

brunodepaulak@yahoo.com.br (JIRA)

unread,
Dec 19, 2015, 6:45:01 AM12/19/15
to jenkinsc...@googlegroups.com

Working for 1.625.3 + Active Choices 1.2, but no JQuery plug-in.

brunodepaulak@yahoo.com.br (JIRA)

unread,
Dec 19, 2015, 6:50:02 AM12/19/15
to jenkinsc...@googlegroups.com

Environment settings:

  • Jenkins ver. 1.625.3 (downloaded from jenkins-ci.org, running with a new JENKINS_HOME directory)
  • Job attached (config_2.xml)
  • uno-choice 1.2
  • jquery 1.11.2-0

The script seemed to work with for both LTS versions tested, with and without the JQuery plug-in.

brunodepaulak@yahoo.com.br (JIRA)

unread,
Dec 19, 2015, 6:51:03 AM12/19/15
to jenkinsc...@googlegroups.com

brunodepaulak@yahoo.com.br (JIRA)

unread,
Dec 19, 2015, 6:53:01 AM12/19/15
to jenkinsc...@googlegroups.com
Bruno P. Kinoshita resolved as Cannot Reproduce
 

Could not reproduce it. The script seems to be working as expected. By the default the checkbox is not checked, and the single select value is false. Then if you check the boolean parameter, the cascaded parameter changes its value to true. Firefox 43.0, Ubuntu Server LTS 14.04.3.

Change By: Bruno P. Kinoshita
Status: Open Resolved
Resolution: Cannot Reproduce

gil@tikalk.com (JIRA)

unread,
Dec 20, 2015, 2:52:01 AM12/20/15
to jenkinsc...@googlegroups.com
Gil Shinar commented on Bug JENKINS-32044
 
Re: Fail to evaluate Boolean parameter to "on" when checked

So maybe the issue is with chrome?
I'll test that with FF

brunodepaulak@yahoo.com.br (JIRA)

unread,
Dec 20, 2015, 3:12:01 AM12/20/15
to jenkinsc...@googlegroups.com

Thanks Gil. I have Chrome and Chromium here, and Safari and IE at work. Let me know if that work or not, and I will confirm what happens in my environment with the other browsers (I can do that anyway in some hours or during the next week). Cutting last release of year in the next days

gil@tikalk.com (JIRA)

unread,
Dec 20, 2015, 4:20:02 AM12/20/15
to jenkinsc...@googlegroups.com

Tested it with FF but still same behavior.
I have tried to set the default value of the Boolean reference true and now when I press on the "build with parameters" link, it does evaluates to "on" but when I uncheck the Boolean reference, it does not evaluates to other than "on". That is very strange. The only thing that is still different in my environment is the Jenkins version. I have tried to read the changelog but couldn't find anything about Boolean parameters or something like that.
I'll try to upgrade the Jenkins version to the latest LTS later on today but I doubt it'll solve my issue.
I really have no clue.

gil@tikalk.com (JIRA)

unread,
Dec 20, 2015, 4:50:02 AM12/20/15
to jenkinsc...@googlegroups.com
Gil Shinar edited a comment on Bug JENKINS-32044
Tested it with FF but still same behavior. 
I have tried to set the default value of the Boolean reference  to  true and now when I press on the "build with parameters" link, it does evaluates to "on" but when I uncheck the Boolean reference, it does not evaluates to other than "on". That is very strange. The only thing that is still different in my environment is the Jenkins version. I have tried to read the changelog but couldn't find anything about Boolean parameters or something like that.

I'll try to upgrade the Jenkins version to the latest LTS later on today but I doubt it'll solve my issue.
I really have no clue.

brunodepaulak@yahoo.com.br (JIRA)

unread,
Feb 5, 2016, 1:50:03 AM2/5/16
to jenkinsc...@googlegroups.com
Bruno P. Kinoshita closed an issue as Cannot Reproduce
 

Fixed in 1.3

Change By: Bruno P. Kinoshita
Status: Resolved Closed
Reply all
Reply to author
Forward
0 new messages