9cff4f295e
executeOn setting is available for PostBuildStep since 2.0 version of the Post Build Script plugin. For previous plugin's version executeOn should be set on the PostBuildScript layer. Change-Id: I6b7c9ccfbd0a2d610499074675835e6b5d96cb17 Task: 39028 Story: 2007411
107 lines
4.1 KiB
XML
107 lines
4.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<project>
|
|
<publishers>
|
|
<org.jenkinsci.plugins.postbuildscript.PostBuildScript>
|
|
<config>
|
|
<markBuildUnstable>true</markBuildUnstable>
|
|
<scriptFiles>
|
|
<org.jenkinsci.plugins.postbuildscript.model.ScriptFile>
|
|
<results>
|
|
<string>SUCCESS</string>
|
|
<string>UNSTABLE</string>
|
|
</results>
|
|
<role>MASTER</role>
|
|
<filePath>/fakepath/generic</filePath>
|
|
<scriptType>GENERIC</scriptType>
|
|
</org.jenkinsci.plugins.postbuildscript.model.ScriptFile>
|
|
<org.jenkinsci.plugins.postbuildscript.model.ScriptFile>
|
|
<results>
|
|
<string>NOT_BUILT</string>
|
|
<string>ABORTED</string>
|
|
<string>FAILURE</string>
|
|
</results>
|
|
<executeOn>MATRIX</executeOn>
|
|
<role>SLAVE</role>
|
|
<filePath>/fakepath/generic-two</filePath>
|
|
<scriptType>GENERIC</scriptType>
|
|
</org.jenkinsci.plugins.postbuildscript.model.ScriptFile>
|
|
<org.jenkinsci.plugins.postbuildscript.model.ScriptFile>
|
|
<results>
|
|
<string>SUCCESS</string>
|
|
<string>UNSTABLE</string>
|
|
</results>
|
|
<executeOn>AXES</executeOn>
|
|
<role>MASTER</role>
|
|
<filePath>/fakepath/groovy</filePath>
|
|
<scriptType>GROOVY</scriptType>
|
|
</org.jenkinsci.plugins.postbuildscript.model.ScriptFile>
|
|
<org.jenkinsci.plugins.postbuildscript.model.ScriptFile>
|
|
<results>
|
|
<string>NOT_BUILT</string>
|
|
<string>ABORTED</string>
|
|
<string>FAILURE</string>
|
|
</results>
|
|
<role>SLAVE</role>
|
|
<filePath>/fakepath/groovy-too</filePath>
|
|
<scriptType>GROOVY</scriptType>
|
|
</org.jenkinsci.plugins.postbuildscript.model.ScriptFile>
|
|
</scriptFiles>
|
|
<groovyScripts>
|
|
<org.jenkinsci.plugins.postbuildscript.model.Script>
|
|
<results>
|
|
<string>SUCCESS</string>
|
|
<string>UNSTABLE</string>
|
|
</results>
|
|
<executeOn>MATRIX</executeOn>
|
|
<role>MASTER</role>
|
|
<content>println "Hello world!"</content>
|
|
</org.jenkinsci.plugins.postbuildscript.model.Script>
|
|
<org.jenkinsci.plugins.postbuildscript.model.Script>
|
|
<results>
|
|
<string>NOT_BUILT</string>
|
|
<string>ABORTED</string>
|
|
<string>FAILURE</string>
|
|
</results>
|
|
<role>SLAVE</role>
|
|
<content>println "Hello world!"
|
|
println "Multi-line script"
|
|
</content>
|
|
</org.jenkinsci.plugins.postbuildscript.model.Script>
|
|
</groovyScripts>
|
|
<buildSteps>
|
|
<org.jenkinsci.plugins.postbuildscript.model.PostBuildStep>
|
|
<results>
|
|
<string>SUCCESS</string>
|
|
<string>UNSTABLE</string>
|
|
</results>
|
|
<executeOn>AXES</executeOn>
|
|
<role>MASTER</role>
|
|
<buildSteps>
|
|
<hudson.tasks.Shell>
|
|
<command>echo "Hello world!"</command>
|
|
</hudson.tasks.Shell>
|
|
</buildSteps>
|
|
</org.jenkinsci.plugins.postbuildscript.model.PostBuildStep>
|
|
<org.jenkinsci.plugins.postbuildscript.model.PostBuildStep>
|
|
<results>
|
|
<string>NOT_BUILT</string>
|
|
<string>ABORTED</string>
|
|
<string>FAILURE</string>
|
|
</results>
|
|
<executeOn>BOTH</executeOn>
|
|
<role>SLAVE</role>
|
|
<buildSteps>
|
|
<hudson.tasks.Shell>
|
|
<command>echo "Hello world!"</command>
|
|
</hudson.tasks.Shell>
|
|
<hudson.tasks.Shell>
|
|
<command>echo "Goodbye world!"</command>
|
|
</hudson.tasks.Shell>
|
|
</buildSteps>
|
|
</org.jenkinsci.plugins.postbuildscript.model.PostBuildStep>
|
|
</buildSteps>
|
|
</config>
|
|
</org.jenkinsci.plugins.postbuildscript.PostBuildScript>
|
|
</publishers>
|
|
</project>
|