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

The selected values of checkbox reactive parameter are not available in Scriptler groovy script

      In Coordinator project, I have two AC Reactive parameters where, and type of both is Checkbox. The second parameter references the first and it should react when the first parameter changes its value.

      The first parameter has more than one option (check boxes) where one is selected by default, but when I change selection on the first parameter (check some other options), and check the value of the first parameter in the Groovy script in the second parameter, it always returns only default selected value (INSTALL1), other selected values are not detected by the second parameter. If I change choice type of the first parameter to radio button or multi select , everything works fine.

          [JENKINS-35101] The selected values of checkbox reactive parameter are not available in Scriptler groovy script

          ping branko_todoric?

          We are triaging issues for the next development cycle, and this one could be included in the next release I think.

          We just need a way to reproduce it, please.

          Bruno P. Kinoshita added a comment - ping branko_todoric ? We are triaging issues for the next development cycle, and this one could be included in the next release I think. We just need a way to reproduce it, please.

          Hi. In the attachment, there is the screenshot that should help you to find out what is Coordinator project. At first, you have to include Coordinator plugin to Jenkins via Manage Jenkins/ Manage plugins. Then create Coordinator project and follow instructions from the first comment. The problem can not be reproduced if you not use Coordinator project type.

          Branko Todoric added a comment - Hi. In the attachment, there is the screenshot that should help you to find out what is Coordinator project. At first, you have to include Coordinator plugin to Jenkins via Manage Jenkins/ Manage plugins. Then create Coordinator project and follow instructions from the first comment. The problem can not be reproduced if you not use Coordinator project type.

          Code changed in jenkins
          User: Bruno P. Kinoshita
          Path:
          src/main/java/org/biouno/unochoice/AbstractScriptableParameter.java
          src/main/java/org/biouno/unochoice/util/Utils.java
          src/test/java/org/biouno/unochoice/issue35101/TestGlobalNodePropertiesScript.java
          src/test/java/org/biouno/unochoice/issue35101/package-info.java
          src/test/java/org/biouno/unochoice/util/TestUtils.java
          http://jenkins-ci.org/commit/active-choices-plugin/34e0110c4344211e57f22b452adf3ac150e504a0
          Log:
          [FIXED JENKINS-35101] expand global node properties during script evaluation

          Compare: https://github.com/jenkinsci/active-choices-plugin/compare/ca83bb960bef...34e0110c4344

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Bruno P. Kinoshita Path: src/main/java/org/biouno/unochoice/AbstractScriptableParameter.java src/main/java/org/biouno/unochoice/util/Utils.java src/test/java/org/biouno/unochoice/issue35101/TestGlobalNodePropertiesScript.java src/test/java/org/biouno/unochoice/issue35101/package-info.java src/test/java/org/biouno/unochoice/util/TestUtils.java http://jenkins-ci.org/commit/active-choices-plugin/34e0110c4344211e57f22b452adf3ac150e504a0 Log: [FIXED JENKINS-35101] expand global node properties during script evaluation Compare: https://github.com/jenkinsci/active-choices-plugin/compare/ca83bb960bef...34e0110c4344

          Committed with wrong JIRA ID. Re-opening.

          Bruno P. Kinoshita added a comment - Committed with wrong JIRA ID. Re-opening.

          Is fix of this bug included in any release versions of ActiveChoices plugin?

          Branko Todoric added a comment - Is fix of this bug included in any release versions of ActiveChoices plugin?

          Not yet branko_todoric. I committed with the wrong Jenkins JIRA ID, but so far no changes in the code specifically for this issue.

          We are aiming at releasing 1.5.3-alpha to the experimental update center this Friday afternoon NZ time. Will try to take a look on this issue before, and maybe include it too. Otherwise, the 1.5.3 will be released on the second week of December if nothing goes wrong.

          Let's try to fix it before that, so you can get a version with this fix

          Bruno P. Kinoshita added a comment - Not yet branko_todoric . I committed with the wrong Jenkins JIRA ID, but so far no changes in the code specifically for this issue. We are aiming at releasing 1.5.3-alpha to the experimental update center this Friday afternoon NZ time. Will try to take a look on this issue before, and maybe include it too. Otherwise, the 1.5.3 will be released on the second week of December if nothing goes wrong. Let's try to fix it before that, so you can get a version with this fix

          John Lemp added a comment -

          Was this fix ever released? I am running into this issue on 1.5.3 where a Groovy script in the second parameter won't return any value when the parameter is of type checkbox but does have a value when I change it to radio or select.

          John Lemp added a comment - Was this fix ever released? I am running into this issue on 1.5.3 where a Groovy script in the second parameter won't return any value when the parameter is of type checkbox but does have a value when I change it to radio or select.

          Hi duckworth, not yet. I'm working on 1.5.4, and this issue has been initially triaged for this release. There is only one issue confirmed in 1.5.4 for now (remove custom stapler proxy). I'm still looking how to combine the issues we have in a new release with not much risk for users.

          In case you have a pull request, just ping me and I'll take a look (would be easier to guarantee it included in this release that way )

          Bruno P. Kinoshita added a comment - Hi duckworth , not yet. I'm working on 1.5.4, and this issue has been initially triaged for this release. There is only one issue confirmed in 1.5.4 for now (remove custom stapler proxy). I'm still looking how to combine the issues we have in a new release with not much risk for users. In case you have a pull request, just ping me and I'll take a look (would be easier to guarantee it included in this release that way )

          Hi kinow, has this fix been released by now?

          Thanks,
          Marko

          Marko Andrijevic added a comment - Hi kinow , has this fix been released by now? Thanks, Marko

          Hi marko_andrijevic, our releases are blocked until scriptler plugin issues are solved, and it's whitelisted again Feel free to ping the mailing list if you'd like an update on scriptler-plugin. So far I'm fixing the issues in active-choices, and what we can do in the meantime is to release to ([BioUno Update site]http://biouno.org/jenkins-update-site.html) if that works for you (cc ioannis).

           

          Cheers

          Bruno

          Bruno P. Kinoshita added a comment - Hi marko_andrijevic , our releases are blocked until scriptler plugin issues are solved, and it's whitelisted again Feel free to ping the mailing list if you'd like an update on scriptler-plugin. So far I'm fixing the issues in active-choices, and what we can do in the meantime is to release to ( [BioUno Update site] http://biouno.org/jenkins-update-site.html) if that works for you (cc ioannis ).   Cheers Bruno

            kinow Bruno P. Kinoshita
            branko_todoric Branko Todoric
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: