778069e1ad
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
15 lines
513 B
XML
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>
|