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
20 lines
550 B
XML
20 lines
550 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<project>
|
|
<builders>
|
|
<hudson.plugins.groovy.SystemGroovy>
|
|
<source class="hudson.plugins.groovy.StringSystemScriptSource">
|
|
<script>
|
|
<script>println 'Hello'</script>
|
|
<sandbox>true</sandbox>
|
|
<classpath>
|
|
<entry>
|
|
<url>file:/home/user/example.jar</url>
|
|
</entry>
|
|
</classpath>
|
|
</script>
|
|
</source>
|
|
<bindings>EXAMPLE=foo-bar</bindings>
|
|
</hudson.plugins.groovy.SystemGroovy>
|
|
</builders>
|
|
</project>
|