d76fa3da74
Updated trigger-builds function to support customization of thresholds sub sections under block section Currently JJB only set default values to those three block thresholds. There are sometimes need to set different values than default. Change-Id: I73e7f828c6b651b87e7068d3c16362f4901ba32a
44 lines
1.8 KiB
XML
44 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<project>
|
|
<builders>
|
|
<hudson.plugins.parameterizedtrigger.TriggerBuilder>
|
|
<configs>
|
|
<hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig>
|
|
<configs class="java.util.Collections$EmptyList"/>
|
|
<configFactories>
|
|
<org.jvnet.jenkins.plugins.nodelabelparameter.parameterizedtrigger.AllNodesForLabelBuildParameterFactory>
|
|
<name>test-name</name>
|
|
<nodeLabel>test-label</nodeLabel>
|
|
<ignoreOfflineNodes>true</ignoreOfflineNodes>
|
|
</org.jvnet.jenkins.plugins.nodelabelparameter.parameterizedtrigger.AllNodesForLabelBuildParameterFactory>
|
|
</configFactories>
|
|
<projects>build_started</projects>
|
|
<condition>ALWAYS</condition>
|
|
<triggerWithNoParameters>false</triggerWithNoParameters>
|
|
<buildAllNodesWithLabel>false</buildAllNodesWithLabel>
|
|
<block>
|
|
<buildStepFailureThreshold>
|
|
<name>FAILURE</name>
|
|
<ordinal>2</ordinal>
|
|
<color>RED</color>
|
|
<completeBuild>true</completeBuild>
|
|
</buildStepFailureThreshold>
|
|
<unstableThreshold>
|
|
<name>UNSTABLE</name>
|
|
<ordinal>1</ordinal>
|
|
<color>YELLOW</color>
|
|
<completeBuild>true</completeBuild>
|
|
</unstableThreshold>
|
|
<failureThreshold>
|
|
<name>FAILURE</name>
|
|
<ordinal>2</ordinal>
|
|
<color>RED</color>
|
|
<completeBuild>true</completeBuild>
|
|
</failureThreshold>
|
|
</block>
|
|
</hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig>
|
|
</configs>
|
|
</hudson.plugins.parameterizedtrigger.TriggerBuilder>
|
|
</builders>
|
|
</project>
|