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

    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

          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

          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
          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.

          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.

          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 )

          kinow 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 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

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

          People

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

            Dates

              Created:
              Updated:
              Resolved: