jenkins-job-builder/tests/publishers/fixtures/postbuildscript-full.xml
Artem Nikitin 9cff4f295e Add execute-on parameter for post build steps
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
2020-03-12 17:04:46 +00:00

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 &quot;Hello world!&quot;</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 &quot;Hello world!&quot;
println &quot;Multi-line script&quot;
</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 &quot;Hello world!&quot;</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 &quot;Hello world!&quot;</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>echo &quot;Goodbye world!&quot;</command>
</hudson.tasks.Shell>
</buildSteps>
</org.jenkinsci.plugins.postbuildscript.model.PostBuildStep>
</buildSteps>
</config>
</org.jenkinsci.plugins.postbuildscript.PostBuildScript>
</publishers>
</project>