07f14378b3
Updated conditional_publisher to support the new XML format in the latest versions (>= 0.13) of the Flexible Publish plugin. Ensured legacy format is still supported for plugin versions < 0.13. Added support for multiple actions per condition with version >= 0.13. Added unit test for multiple actions per condition Change-Id: I4a91d2836ccd079d059b961a7f0b177a17df4093
27 lines
1.4 KiB
XML
27 lines
1.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<project>
|
|
<publishers>
|
|
<org.jenkins__ci.plugins.flexible__publish.FlexiblePublisher>
|
|
<publishers>
|
|
<org.jenkins__ci.plugins.flexible__publish.ConditionalPublisher>
|
|
<condition class="org.jenkins_ci.plugins.run_condition.contributed.ShellCondition">
|
|
<command>ls file*</command>
|
|
</condition>
|
|
<runner class="org.jenkins_ci.plugins.run_condition.BuildStepRunner$DontRun"/>
|
|
<publisher class="com.michelin.cio.hudson.plugins.copytoslave.CopyToMasterNotifier">
|
|
<includes>file1,file2*.txt</includes>
|
|
<excludes>file2bad.txt</excludes>
|
|
<destinationFolder/>
|
|
</publisher>
|
|
</org.jenkins__ci.plugins.flexible__publish.ConditionalPublisher>
|
|
<org.jenkins__ci.plugins.flexible__publish.ConditionalPublisher>
|
|
<condition class="org.jenkins_ci.plugins.run_condition.core.AlwaysRun"/>
|
|
<runner class="org.jenkins_ci.plugins.run_condition.BuildStepRunner$RunUnstable"/>
|
|
<publisher class="hudson.tasks.test.AggregatedTestResultPublisher">
|
|
<includeFailedBuilds>true</includeFailedBuilds>
|
|
</publisher>
|
|
</org.jenkins__ci.plugins.flexible__publish.ConditionalPublisher>
|
|
</publishers>
|
|
</org.jenkins__ci.plugins.flexible__publish.FlexiblePublisher>
|
|
</publishers>
|
|
</project> |