c9ed6891cf
Avoid imposing hardcoded order of the scripts within the module and instead favour the order of the input data. Combined with use of ordered dicts for yaml, this ensures that users may control the order of the various steps to use with the post build scripts from yaml. Change-Id: Icf540a53cb6f1b13f80f09d9103610aee10d3861
43 lines
1.9 KiB
XML
43 lines
1.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<project>
|
|
<publishers>
|
|
<org.jenkinsci.plugins.postbuildscript.PostBuildScript>
|
|
<buildSteps>
|
|
<hudson.tasks.Shell>
|
|
<command>echo "Shell execution should be first"</command>
|
|
</hudson.tasks.Shell>
|
|
<hudson.tasks.Ant>
|
|
<targets>ant_target</targets>
|
|
<antName>default</antName>
|
|
</hudson.tasks.Ant>
|
|
</buildSteps>
|
|
<groovyScriptContentList>
|
|
<org.jenkinsci.plugins.postbuildscript.GroovyScriptContent>
|
|
<content>/** This is some inlined groovy */</content>
|
|
</org.jenkinsci.plugins.postbuildscript.GroovyScriptContent>
|
|
<org.jenkinsci.plugins.postbuildscript.GroovyScriptContent>
|
|
<content>/** Some more inlined groovy */</content>
|
|
</org.jenkinsci.plugins.postbuildscript.GroovyScriptContent>
|
|
</groovyScriptContentList>
|
|
<genericScriptFileList>
|
|
<org.jenkinsci.plugins.postbuildscript.GenericScript>
|
|
<filePath>/tmp/one.sh</filePath>
|
|
</org.jenkinsci.plugins.postbuildscript.GenericScript>
|
|
<org.jenkinsci.plugins.postbuildscript.GenericScript>
|
|
<filePath>/tmp/two.sh</filePath>
|
|
</org.jenkinsci.plugins.postbuildscript.GenericScript>
|
|
</genericScriptFileList>
|
|
<groovyScriptFileList>
|
|
<org.jenkinsci.plugins.postbuildscript.GroovyScriptFile>
|
|
<filePath>/tmp/one.groovy</filePath>
|
|
</org.jenkinsci.plugins.postbuildscript.GroovyScriptFile>
|
|
<org.jenkinsci.plugins.postbuildscript.GroovyScriptFile>
|
|
<filePath>/tmp/two.groovy</filePath>
|
|
</org.jenkinsci.plugins.postbuildscript.GroovyScriptFile>
|
|
</groovyScriptFileList>
|
|
<scriptOnlyIfSuccess>false</scriptOnlyIfSuccess>
|
|
<scriptOnlyIfFailure>true</scriptOnlyIfFailure>
|
|
</org.jenkinsci.plugins.postbuildscript.PostBuildScript>
|
|
</publishers>
|
|
</project>
|