org.jenkins_ci.plugins.build_cause_run_condition
Class BuildCauseCondition

java.lang.Object
  extended by org.jenkins_ci.plugins.build_cause_run_condition.BuildCauseCondition
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<BuildCauseCondition>
Direct Known Subclasses:
ExtendedCauseCondition.UpstreamCauseCondition, ExtendedCauseCondition.UserBuildCauseCondition

public abstract class BuildCauseCondition
extends Object
implements hudson.model.Describable<BuildCauseCondition>, hudson.ExtensionPoint

Abstract Build Cause condition that checks the build condition

Author:
Chris Johnson

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
BuildCauseCondition()
           
 
Method Summary
static hudson.DescriptorExtensionList<BuildCauseCondition,BuildCauseConditionDescriptor> all()
           
 hudson.model.Descriptor<BuildCauseCondition> getDescriptor()
          
abstract  boolean runPerform(hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener)
          Performs the check of the condition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildCauseCondition

public BuildCauseCondition()
Method Detail

all

public static hudson.DescriptorExtensionList<BuildCauseCondition,BuildCauseConditionDescriptor> all()

runPerform

public abstract boolean runPerform(hudson.model.AbstractBuild<?,?> build,
                                   hudson.model.BuildListener listener)
                            throws InterruptedException
Performs the check of the condition

Returns:
true if the condition is allowed false if not allowed to proceed.
Throws:
InterruptedException

getDescriptor

public hudson.model.Descriptor<BuildCauseCondition> getDescriptor()

Specified by:
getDescriptor in interface hudson.model.Describable<BuildCauseCondition>


Copyright © 2004-2012. All Rights Reserved.