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

Implement a pre-parameter Groovy script

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • active-choices-plugin
    • None

      I'm picking up again the idea I had in JENKINS-28617 : It would be great to have a Groovy script that can be run before any of the Active Choices parameter Groovy scripts are run.

      Most of the time, I read an XML file to construct the data for an HTML form field. But I have to do it every time (seven times for my current form), which results in redundant code and slower performance.

      So, my suggestion is that it should be possible to have a Groovy script that's run before all the other Groovy script run. Like for the Active Choices Reactive Reference Parameter, it should be possible to define what Groovy variables can be seen in other Groovy scripts.

            kinow Bruno P. Kinoshita
            cristalp cristalp
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: