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

Parameter values not displayed when references are null

    • 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. param2.png
          81 kB
          Allan BURDAJEWICZ
        2. param1.png
          81 kB
          Allan BURDAJEWICZ
        3. 2.440.3-uno-choice-2.8.3.png
          17 kB
          Allan BURDAJEWICZ
        4. 2.387.1-uno-choice-2.6.5.png
          17 kB
          Allan BURDAJEWICZ

          [JENKINS-73210] Parameter values not displayed when references are null

          Allan BURDAJEWICZ added a comment - - edited

          Allan BURDAJEWICZ added a comment - - edited Might be related to other issues. For example https://issues.jenkins.io/browse/JENKINS-71909 or https://issues.jenkins.io/browse/JENKINS-71724

          It works with 2.387.3 and uno-choice 2.8.3. So this is also maybe also related to the changes in JS libraries in Core.

          Allan BURDAJEWICZ added a comment - It works with 2.387.3 and uno-choice 2.8.3. So this is also maybe also related to the changes in JS libraries in Core.

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

              Created:
              Updated: