jenkins-job-builder/tests/builders/fixtures/system-groovy001.xml
Artem Nikitin 3abe808991 Fix system_groovy issue
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
2020-11-13 15:21:47 +00:00

12 lines
323 B
XML

<?xml version="1.0" encoding="utf-8"?>
<project>
<builders>
<hudson.plugins.groovy.SystemGroovy>
<scriptSource class="hudson.plugins.groovy.FileScriptSource">
<scriptFile>test.groovy</scriptFile>
</scriptSource>
<bindings/>
</hudson.plugins.groovy.SystemGroovy>
</builders>
</project>