Referenced Parameters Not Passed to Scriptler Scripts

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      To demonstrate the problem, create a Scriptler script as follows:

      println binding.variables
      first = binding.variables.get('First').tokenize(',')
      return first
      

      Name is unimportant. Then create a Jenkins job with three parameters:

      1. Active Choices Parameter, Name: First, Script: Groovy Script:

      return ['One','Two']
      

      Choice Type: Check Boxes

      2. Active Choices Reactive Parameter, Name: Second, Script: Groovy Script: same as the scriptler script:

      println binding.variables
      first = binding.variables.get('First').tokenize(',')
      return first
      

      Choice Type: Single Select, Referenced Parameters: First

      3. Active Choices Reactive Parameter, Name: Third, Script: Scripter Script, Script: (whatever you named the scriptler script above), Choice Type: Single Select, Referenced Parameters: First

      Save; run the script using Build With Parameters.

      Expected behavior: Checking checkboxes in First causes drop-down lists to be updated with checkbox items in Second and Third.

      Observed behavior: Checking checkboxes in First causes drop-down lists to be updated with checkbox items in Second but not in Third.

      Further confirmation: Verify binding.variables content in log. Switch Second and Third's script type and script contents and rerun.

            Assignee:
            Bruno P. Kinoshita
            Reporter:
            Edwin Floyd
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: