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

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

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          branko_todoric Branko Todoric created issue -
          Hide
          ioannis Ioannis Moutsatsos added a comment -

          I have been unable to reproduce the referenced issue. Please, see complete notes and example configuration file here

          Show
          ioannis Ioannis Moutsatsos added a comment - I have been unable to reproduce the referenced issue. Please, see complete notes and example configuration file here
          Hide
          branko_todoric Branko Todoric added a comment -

          Problem can be reproduced only in Coodrinator project.

          Show
          branko_todoric Branko Todoric added a comment - Problem can be reproduced only in Coodrinator project.
          Hide
          kinow Bruno P. Kinoshita added a comment -

          Hi, what is the Coordinator project Branko? Have you had a look at the configuration example provided by Ioannis? We are triaging issues for the next development cycle, and issues that can be reproduced are given higher priority normally (unless there's a security issue, or must-do issue).

          Show
          kinow Bruno P. Kinoshita added a comment - Hi, what is the Coordinator project Branko? Have you had a look at the configuration example provided by Ioannis? We are triaging issues for the next development cycle, and issues that can be reproduced are given higher priority normally (unless there's a security issue, or must-do issue).
          Hide
          kinow 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.

          Show
          kinow 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.
          rtyler R. Tyler Croy made changes -
          Field Original Value New Value
          Workflow JNJira [ 171320 ] JNJira + In-Review [ 184255 ]
          branko_todoric Branko Todoric made changes -
          Attachment Coordinator project.png [ 33439 ]
          Hide
          branko_todoric 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.

          Show
          branko_todoric 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.
          Hide
          scm_issue_link 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

          Show
          scm_issue_link 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
          scm_issue_link SCM/JIRA link daemon made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          kinow Bruno P. Kinoshita made changes -
          Status Resolved [ 5 ] In Review [ 10005 ]
          kinow Bruno P. Kinoshita made changes -
          Status In Review [ 10005 ] In Progress [ 3 ]
          Hide
          kinow Bruno P. Kinoshita added a comment -

          Committed with wrong JIRA ID. Re-opening.

          Show
          kinow Bruno P. Kinoshita added a comment - Committed with wrong JIRA ID. Re-opening.
          Hide
          branko_todoric Branko Todoric added a comment -

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

          Show
          branko_todoric Branko Todoric added a comment - Is fix of this bug included in any release versions of ActiveChoices plugin?
          Hide
          kinow 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

          Show
          kinow 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
          Hide
          duckworth 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.

          Show
          duckworth 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.
          Hide
          kinow Bruno P. Kinoshita added a comment -

          Hi John Lemp, 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 )

          Show
          kinow Bruno P. Kinoshita added a comment - Hi John Lemp , 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 )
          Hide
          marko_andrijevic Marko Andrijevic added a comment -

          Hi Bruno P. Kinoshita, has this fix been released by now?

          Thanks,
          Marko

          Show
          marko_andrijevic Marko Andrijevic added a comment - Hi Bruno P. Kinoshita , has this fix been released by now? Thanks, Marko
          Hide
          kinow 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 Moutsatsos).

           

          Cheers

          Bruno

          Show
          kinow 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 Moutsatsos ).   Cheers Bruno

            People

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

              Dates

              Created:
              Updated:
              Resolved: