Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-32044

Fail to evaluate Boolean parameter to "on" when checked

      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.

          [JENKINS-32044] Fail to evaluate Boolean parameter to "on" when checked

          Gil Shinar created issue -
          Gil Shinar made changes -
          Description Original: 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.
          New: 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.

          Bruno P. Kinoshita added a comment - - edited

          Could not reproduce it with 1.580.1 without the JQuery plug-in. Trying with 1.625.3 now.

          Bruno P. Kinoshita added a comment - - edited Could not reproduce it with 1.580.1 without the JQuery plug-in. Trying with 1.625.3 now.

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

          Bruno P. Kinoshita added a comment - Working for 1.625.3 + Active Choices 1.2, but no JQuery plug-in.

          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.

          Bruno P. Kinoshita added a comment - 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.
          Bruno P. Kinoshita made changes -
          Attachment New: config_2.xml [ 31471 ]

          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.

          Bruno P. Kinoshita added a comment - 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.
          Bruno P. Kinoshita made changes -
          Resolution New: Cannot Reproduce [ 5 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          Gil Shinar added a comment -

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

          Gil Shinar added a comment - So maybe the issue is with chrome? I'll test that with FF

          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

          Bruno P. Kinoshita added a comment - 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

            kinow Bruno P. Kinoshita
            gils Gil Shinar
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: