hudson.plugins.parameterizedtrigger
Class BlockingBehaviour

java.lang.Object
  extended by hudson.plugins.parameterizedtrigger.BlockingBehaviour
All Implemented Interfaces:
hudson.model.Describable<BlockingBehaviour>

public class BlockingBehaviour
extends Object
implements hudson.model.Describable<BlockingBehaviour>

Determines how to handle the status of the triggered builds in TriggerBuilder.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class BlockingBehaviour.DescriptorImpl
           
 
Field Summary
 hudson.model.Result buildStepFailureThreshold
           
 hudson.model.Result failureThreshold
           
 hudson.model.Result unstableThreshold
           
 
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.Descriptor<BlockingBehaviour> getDescriptor()
           
 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buildStepFailureThreshold

public final hudson.model.Result buildStepFailureThreshold

unstableThreshold

public final hudson.model.Result unstableThreshold

failureThreshold

public final hudson.model.Result failureThreshold
Constructor Detail

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)
Method Detail

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

getDescriptor

public hudson.model.Descriptor<BlockingBehaviour> getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<BlockingBehaviour>


Copyright © 2004-2011. All Rights Reserved.