hudson.plugins.parameterizedtrigger
Class BlockingBehaviour
java.lang.Object
hudson.model.AbstractDescribableImpl<BlockingBehaviour>
hudson.plugins.parameterizedtrigger.BlockingBehaviour
- All Implemented Interfaces:
- hudson.model.Describable<BlockingBehaviour>
public class BlockingBehaviour
- extends hudson.model.AbstractDescribableImpl<BlockingBehaviour>
Determines how to handle the status of the triggered builds in TriggerBuilder.
- Author:
- Kohsuke Kawaguchi
|
Constructor Summary |
BlockingBehaviour(hudson.model.Result buildStepFailureThreshold,
hudson.model.Result unstableThreshold,
hudson.model.Result failureThreshold)
|
BlockingBehaviour(String buildStepFailureThreshold,
String unstableThreshold,
String failureThreshold)
|
|
Method Summary |
hudson.model.Result |
mapBuildResult(hudson.model.Result r)
Maps the result of a triggered build to the result of the triggering build. |
boolean |
mapBuildStepResult(hudson.model.Result r)
Maps the result of a triggered build to the result of the triggering build step. |
| Methods inherited from class hudson.model.AbstractDescribableImpl |
getDescriptor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buildStepFailureThreshold
public final hudson.model.Result buildStepFailureThreshold
unstableThreshold
public final hudson.model.Result unstableThreshold
failureThreshold
public final hudson.model.Result failureThreshold
BlockingBehaviour
@DataBoundConstructor
public BlockingBehaviour(String buildStepFailureThreshold,
String unstableThreshold,
String failureThreshold)
BlockingBehaviour
public BlockingBehaviour(hudson.model.Result buildStepFailureThreshold,
hudson.model.Result unstableThreshold,
hudson.model.Result failureThreshold)
mapBuildStepResult
public boolean mapBuildStepResult(hudson.model.Result r)
- Maps the result of a triggered build to the result of the triggering build step.
- Parameters:
r - the Result of the triggered build to map
- Returns:
false if the triggering build step has to fail, true otherwise
mapBuildResult
public hudson.model.Result mapBuildResult(hudson.model.Result r)
- Maps the result of a triggered build to the result of the triggering build.
- Parameters:
r - the Result of the triggered build to map
- Returns:
- the result of the triggering build
Copyright © 2004-2012. All Rights Reserved.