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

    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

          Hi kirubakaran_kannan

          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

          kinow Bruno P. Kinoshita added a comment - Hi kirubakaran_kannan 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

          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

          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

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

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

          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!

          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

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

            Dates

              Created:
              Updated:
              Resolved: