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

Parameter values not displayed when references are null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • active-choices-plugin
    • None
    • uno-choice:2.8.3

      After upgrading the Active Choice Parameter plugin from 2.6.5 to the latest, parameters that used referenced parameter with null values end up being null.

      How to Reproduce

      • Create a parameterized pipeline with the following parameters:
      • An Active Choice Parameter param1 with the following groovy script:
      def param1 = null
      return [param1]
      
      • An Active Choice Reactive Parameter param2 with param1 as *Referenced Parameters* the following groovy script:
      def param2 = param1 + 'test'
      return [param2]
      
      • Hit build with parameters

      --> param1 shows an empty list (expected)
      --> param2 shows an empty list (un-expected)

      Rather, this was working before, with version 2.6.5 of the plugin and 2.387.3 of core. But the behavior changed after upgrading to current latest 2.8.3 and core 2.440.3.

        1. 2.387.1-uno-choice-2.6.5.png
          2.387.1-uno-choice-2.6.5.png
          17 kB
        2. 2.440.3-uno-choice-2.8.3.png
          2.440.3-uno-choice-2.8.3.png
          17 kB
        3. param1.png
          param1.png
          81 kB
        4. param2.png
          param2.png
          81 kB

            kinow Bruno P. Kinoshita
            allan_burdajewicz Allan BURDAJEWICZ
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: