jenkins-job-builder/tests/publishers/fixtures/postbuildscript001.xml
Thanh Ha 5579395bc3
Add support for PostBuildScript 2.x
Updates the PostBuildScript plugin to support the 2.x version which
had a major overhaul of the XML output for the plugin.

Change-Id: I9ff3161bc50be236013e32f3ca9ad81b38004dc8
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2018-02-13 10:35:46 -05:00

35 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<project>
<publishers>
<org.jenkinsci.plugins.postbuildscript.PostBuildScript>
<markBuildUnstable>true</markBuildUnstable>
<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>
<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>
<scriptOnlyIfSuccess>false</scriptOnlyIfSuccess>
<scriptOnlyIfFailure>true</scriptOnlyIfFailure>
</org.jenkinsci.plugins.postbuildscript.PostBuildScript>
</publishers>
</project>