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

Active Choices Reactive Parameter with boolean as Referenced parameters is not evaluated depending on the position

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • active-choices-plugin
    • Jenkins 2.190.1 Docker based.
      JDK 1.8
      Active Choices Plug-in 2.2.1

      I have a job with an Active Choice Reactive parameter with a Boolean as a Referenced Parameter

      Depending on the position in the job configuration it evaluates the Referenced Parameters or not.

      When they are sorted as in the image position1, all works fine. But if the Boolean Parameter is after the Active Choice Reactive parameter, then, the Active Choice Reactive parameter stop working properly. 

      I guess it has to evaluate the value of the Boolean Parameter, and if it is after the Active Choice Reactive parameter, the Active Choice Reactive parameter considers that the  the Referenced Parameters does not exists and stop working.

      Thanks  a lot in advance.

          [JENKINS-59938] Active Choices Reactive Parameter with boolean as Referenced parameters is not evaluated depending on the position

          Ioannis Moutsatsos added a comment - - edited

          Indeed this is how the cascade parameter update happens. Any parameter used by an active choice reactive has to be defined upstream. There are some advanced strategies for sharing parameters independent of their sequence in the form (using an in-memory h2 database) but this is beyond the scope of most typical freestyle jobs. We have discussed this with kinow as a future improvement.

          Ioannis Moutsatsos added a comment - - edited Indeed this is how the cascade parameter update happens. Any parameter used by an active choice reactive has to be defined upstream. There are some advanced strategies for sharing parameters independent of their sequence in the form (using an in-memory h2 database) but this is beyond the scope of most typical freestyle jobs. We have discussed this with kinow as a future improvement.

          Not an issue. Working as expected

          Ioannis Moutsatsos added a comment - Not an issue. Working as expected

            kinow Bruno P. Kinoshita
            jdcano Daniel Cano
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: