For a list of other such plugins, see the Pipeline Steps Reference page.
Allows the Pipeline script to pass structured objects to the external Groovy script and receive structured return values. The values must be
Serializable and may only refer to types defined in the Java Platform or Groovy language. If set to any non-null value, the external script may call the following methods:
(If your script passes
-classpath, be sure to append/prepend
jdk : String(optional)
groovywill use whatever
javais in your system path, typically that which launched the agent (
tool : String(optional)
groovywill just run the CLI (
groovy.ui.GroovyMain) from the version of Groovy currently bundled in Jenkins. This is enough for simple scripts, but does not support specific command-line options of the full Groovy launcher.