jenkins-job-builder/tests/triggers/fixtures/script002.xml
Jaime Flynn 778069e1ad fix default handling of script-file-path
Fixes the default handling of script-file-path property in
script trigger to more closely match the default behavior
when saving a job configuration in the Jenkins UI.

The previous behavior of setting script-file-path to an empty
string resulted in exceptions in the Jenkins log.

org.jenkinsci.plugins.scripttrigger.ScriptTriggerException:
The script file path '' doesn't exist.

Change-Id: I3d07892685c96824041efb102b2a474c22a2b9a7
2015-09-25 16:25:21 -05:00

15 lines
513 B
XML

<?xml version="1.0" encoding="utf-8"?>
<project>
<triggers class="vector">
<org.jenkinsci.plugins.scripttrigger.ScriptTrigger>
<script>exit 0</script>
<scriptFilePath>$WORKSPACE/scripts</scriptFilePath>
<spec>H/15 * * * *</spec>
<labelRestriction>true</labelRestriction>
<triggerLabel>master</triggerLabel>
<enableConcurrentBuild>false</enableConcurrentBuild>
<exitCode>0</exitCode>
</org.jenkinsci.plugins.scripttrigger.ScriptTrigger>
</triggers>
</project>