3abe808991
System groovy has difference with the simple groovy command. System groovy result XML for system groovy command (script), looks like this: <hudson.plugins.groovy.SystemGroovy plugin="groovy@2.3"> <source class="hudson.plugins.groovy.StringSystemScriptSource"> <script plugin="script-security@1.75"> <script>Groovy command</script> <sandbox>[true|false]</sandbox> <classpath> <entry> <url>...</url> </entry> ... <entry> <url>...</url> </entry> </classpath> </script> </source> <bindings>...</bindings> </hudson.plugins.groovy.SystemGroovy> Change-Id: I85eb5848de2a817ab132559b53cbeb316931195f
7 lines
164 B
YAML
7 lines
164 B
YAML
builders:
|
|
- system-groovy:
|
|
command: "println 'Hello'"
|
|
bindings: "EXAMPLE=foo-bar"
|
|
class-path: "file:/home/user/example.jar"
|
|
sandbox: true
|