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

Last html is being returned while having multiple html returns in Active Choice Reactive Reference Parameters

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I am currently using Active Choice Reactive Reference Parameter for one of my pipeline job where the parameter holds 20+ values formatted in HTML. When I tried to loop over all the values it is only returning the last 'return html' statement. I am not sure why and would like to know if anyone observed this before

      Attached the code and screenshot for the reference. What I am trying to do is, break the html tag to display the 20+ values in 5 rows 4 columns.

        Attachments

          Activity

          Hide
          kinow Bruno P. Kinoshita added a comment -

          Hi Kirubakaran

          Could you provide a config.xml, or detailed steps to create a job and reproduce the issue? I saw your code attached, but I'm not sure how to use that to create the scenario you described.

          Thanks

          Show
          kinow Bruno P. Kinoshita added a comment - Hi Kirubakaran Could you provide a config.xml, or detailed steps to create a job and reproduce the issue? I saw your code attached, but I'm not sure how to use that to create the scenario you described. Thanks
          Hide
          ioannis Ioannis Moutsatsos added a comment -

          I don't use AC with pipelines, so I don't understand whether this code is for one parameter or multiples. I see 2 return statements. Clearly that does not make sense for a single parameter, as the script exits after it hits the first return statement

          Show
          ioannis Ioannis Moutsatsos added a comment - I don't use AC with pipelines, so I don't understand whether this code is for one parameter or multiples. I see 2 return statements. Clearly that does not make sense for a single parameter, as the script exits after it hits the first return statement
          Hide
          kinow Bruno P. Kinoshita added a comment -

          KirubakaranI had a look at the code you attached, and agree with Ioannis Moutsatsos . You appear to have two return statements, but each Groovy script in a parameter must return a single list/map object.

          Show
          kinow Bruno P. Kinoshita added a comment - Kirubakaran I had a look at the code you attached, and agree with Ioannis Moutsatsos . You appear to have two return statements, but each Groovy script in a parameter must return a single list/map object.
          Hide
          kinow Bruno P. Kinoshita added a comment -

          Closing as cannot reproduce, but feel free to comment on this issue. We can re-open if someone else is able to reproduce it. Thanks!

          Show
          kinow Bruno P. Kinoshita added a comment - Closing as cannot reproduce, but feel free to comment on this issue. We can re-open if someone else is able to reproduce it. Thanks!

            People

            Assignee:
            kinow Bruno P. Kinoshita
            Reporter:
            kirubakaran_kannan Kirubakaran
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: