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

Active Choice Reactive Parameter is not returning value without []

      I am using the active choice reactive parameter for one of automation to dynamically populate the value with reference to the previous parameter, but the issue i found is that active choice reactive parameter not returning any output with variable enclosed with [], which is causing the issue for me.

      Same works fine with active choice reactive reference parameter, but since it doesn't have single select option i cannot use it.

       

      Please find the below snapshot for your reference

      I understand that single select always requires list kind of value, but the script which i am executing returns list datatype variable.

       

      while executing some groovy script also it is giving me the same kind of error, is there any fix for the same? I have tried it by adding parameter sections in the pipeline also not worked for me.

      can somebody have any solution on it?

          [JENKINS-73338] Active Choice Reactive Parameter is not returning value without []

          Hi, this could be a duplicate of another issue, but I'd have to confirm first. Could you share the config.xml of your job, please? Thanks

          Bruno P. Kinoshita added a comment - Hi, this could be a duplicate of another issue, but I'd have to confirm first. Could you share the config.xml of your job, please? Thanks

          Hi amar_1909 

          You must always return a List or Map (it's documented in the plug-in Wiki). If you have a single element, return a one-element list and that should do it (we could handle single values and treat them as one-sized arrays, but that could hide bugs, and it's easier to maintain the plug-in if it's made to be "less smart")

          Bruno P. Kinoshita added a comment - Hi amar_1909   You must always return a List or Map (it's documented in the plug-in Wiki). If you have a single element, return a one-element list and that should do it (we could handle single values and treat them as one-sized arrays, but that could hide bugs, and it's easier to maintain the plug-in if it's made to be "less smart")

          Bruno P. Kinoshita added a comment - Screenshot from https://plugins.jenkins.io/uno-choice/. Closing

            kinow Bruno P. Kinoshita
            amar_1909 Amar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: