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

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

          Allan BURDAJEWICZ created issue -
          Allan BURDAJEWICZ made changes -
          Description Original: After upgfrading the Sctive Choice Parameter plugin from 2.6.5 to the latest, parameters that used referenced parameter with null values end up being null.



          h3. How to Reproduce

          * Create a parameterized pipeline with the following parameters:
          * An Active Choice Parameter {{param1}} with the following groovy script:

          {code}
          def param1 = null
          return [param1]
          {code}

          * An Active Choice Reactive Parameter {{param2}} with {{param1}} as **Referenced Parameters** the following groovy script:

          {code}
          def param2 = param1 + 'test'
          return [param2]
          {code}

          * 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.352.1.
          New: 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.

          h3. How to Reproduce

          * Create a parameterized pipeline with the following parameters:
          * An Active Choice Parameter {{param1}} with the following groovy script:

          {code}
          def param1 = null
          return [param1]
          {code}

          * An Active Choice Reactive Parameter {{param2}} with {{param1}} as **Referenced Parameters** the following groovy script:

          {code}
          def param2 = param1 + 'test'
          return [param2]
          {code}

          * 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.352.1.
          Allan BURDAJEWICZ made changes -
          Attachment New: 2.387.1-uno-choice-2.6.5.png [ 62626 ]
          Attachment New: 2.387.3-uno-choice-2.8.3.png [ 62627 ]
          Attachment New: param1.png [ 62628 ]
          Attachment New: param2.png [ 62629 ]
          Allan BURDAJEWICZ made changes -
          Link New: This issue is related to JENKINS-71755 [ JENKINS-71755 ]
          Allan BURDAJEWICZ made changes -
          Attachment Original: 2.387.3-uno-choice-2.8.3.png [ 62627 ]
          Allan BURDAJEWICZ made changes -
          Description Original: 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.

          h3. How to Reproduce

          * Create a parameterized pipeline with the following parameters:
          * An Active Choice Parameter {{param1}} with the following groovy script:

          {code}
          def param1 = null
          return [param1]
          {code}

          * An Active Choice Reactive Parameter {{param2}} with {{param1}} as **Referenced Parameters** the following groovy script:

          {code}
          def param2 = param1 + 'test'
          return [param2]
          {code}

          * 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.352.1.
          New: 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.

          h3. How to Reproduce

          * Create a parameterized pipeline with the following parameters:
          * An Active Choice Parameter {{param1}} with the following groovy script:

          {code}
          def param1 = null
          return [param1]
          {code}

          * An Active Choice Reactive Parameter {{param2}} with {{param1}} as **Referenced Parameters** the following groovy script:

          {code}
          def param2 = param1 + 'test'
          return [param2]
          {code}

          * 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.
          Allan BURDAJEWICZ made changes -
          Attachment New: 2.440.3-uno-choice-2.8.3.png [ 62630 ]
          Allan BURDAJEWICZ made changes -
          Link Original: This issue is related to JENKINS-71755 [ JENKINS-71755 ]

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

              Created:
              Updated: