Here is an example of how this feature could be useful.
First create a groovy script that imports a class, call this script "caller.groovy":
Next create the file that contains the class, call this file "JenkinsSystemGroovy.groovy":
Get those two files in the workspace (for example, your workspace could contain a git clone of your work that includes those files).
Next we want to run the caller.groovy script as a System Groovy Script in the Build phase, so we configure the build phase as such:
This fails on the import. This bug report is about making this possible.
Here is an example of how this feature could be useful.
First create a groovy script that imports a class, call this script "caller.groovy":
Next create the file that contains the class, call this file "JenkinsSystemGroovy.groovy":
Get those two files in the workspace (for example, your workspace could contain a git clone of your work that includes those files).
Next we want to run the caller.groovy script as a System Groovy Script in the Build phase, so we configure the build phase as such:
This fails on the import. This bug report is about making this possible.