When configuring a workflow job and adding a active-choices parameter to the job, the script section is blank/empty. This also seems to happen when the active-choices plugin is used with another plugin that has a groovy script textarea.

          [JENKINS-29407] Active Choices plugin doesn't work with Workflow Plugin

          Jason Kulatunga created issue -

          Hi Jason

          It is a known issue (see JENKINS-28735), and I haven't found a way to fix it yet.

          Currently, the parameter uses the Jenkins UI, read and parsing the HTML DOM to find other parameters. When used in scripts or from other plug-ins, if the Jenkins UI is not used, it will simply evaluate the Groovy script with no parameters.

          Bruno P. Kinoshita added a comment - Hi Jason It is a known issue (see JENKINS-28735 ), and I haven't found a way to fix it yet. Currently, the parameter uses the Jenkins UI, read and parsing the HTML DOM to find other parameters. When used in scripts or from other plug-ins, if the Jenkins UI is not used, it will simply evaluate the Groovy script with no parameters.
          Bruno P. Kinoshita made changes -
          Link New: This issue is related to JENKINS-28735 [ JENKINS-28735 ]
          Jason Kulatunga made changes -
          Attachment New: configure page.png [ 30173 ]

          Jason Kulatunga added a comment - - edited

          I've added an attachment with the issue i'm referencing. Its different than the link you provided. The error is happening in the Job configure page.

          Jason Kulatunga added a comment - - edited I've added an attachment with the issue i'm referencing. Its different than the link you provided. The error is happening in the Job configure page.
          Jason Kulatunga made changes -
          Attachment New: Screen Shot 2015-07-14 at 9.24.35 AM.png [ 30174 ]

          Code changed in jenkins
          User: Bruno P. Kinoshita
          Path:
          src/main/resources/org/biouno/unochoice/CascadeChoiceParameter/config.jelly
          src/main/resources/org/biouno/unochoice/ChoiceParameter/config.jelly
          src/main/resources/org/biouno/unochoice/DynamicReferenceParameter/config.jelly
          http://jenkins-ci.org/commit/active-choices-plugin/2e53bed2aeb88e5cb83e759f5d9a8f055af32931
          Log:
          JENKINS-29407 Double check before using instance! Check if the it variable is available, or the configuration scripts can be emptied!

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Bruno P. Kinoshita Path: src/main/resources/org/biouno/unochoice/CascadeChoiceParameter/config.jelly src/main/resources/org/biouno/unochoice/ChoiceParameter/config.jelly src/main/resources/org/biouno/unochoice/DynamicReferenceParameter/config.jelly http://jenkins-ci.org/commit/active-choices-plugin/2e53bed2aeb88e5cb83e759f5d9a8f055af32931 Log: JENKINS-29407 Double check before using instance! Check if the it variable is available, or the configuration scripts can be emptied!

          Edward Wijaya added a comment -

          Hi Bruno,

          I'm currently using Workflow that populates dynamically 2 parameters.
          This is similar to the 2nd example "Active Choices Reactive Parameter: Configuration Options (Example 02)" where we select site and then the list of cities will be populated.

          This still does not work in Jenkins Workflow as Jason reported. Can you prioritise to fix this problem?
          Thanks alot for your help, kind of need this urgently.

          I'm using Jenkins ver. 1.632, and Active choice ver 1.2

          Edward

          Edward Wijaya added a comment - Hi Bruno, I'm currently using Workflow that populates dynamically 2 parameters. This is similar to the 2nd example "Active Choices Reactive Parameter: Configuration Options (Example 02)" where we select site and then the list of cities will be populated. This still does not work in Jenkins Workflow as Jason reported. Can you prioritise to fix this problem? Thanks alot for your help, kind of need this urgently. I'm using Jenkins ver. 1.632, and Active choice ver 1.2 Edward
          Edward Wijaya made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: In Progress [ 3 ]
          Edward Wijaya made changes -
          Status Original: In Progress [ 3 ] New: Open [ 1 ]

            kinow Bruno P. Kinoshita
            analogj Jason Kulatunga
            Votes:
            9 Vote for this issue
            Watchers:
            20 Start watching this issue

              Created:
              Updated:
              Resolved: