Package hudson.plugins.promoted_builds
Class PromotionCondition
java.lang.Object
hudson.plugins.promoted_builds.PromotionCondition
- All Implemented Interfaces:
 ExtensionPoint,Describable<PromotionCondition>
- Direct Known Subclasses:
 DownstreamPassCondition,GroovyCondition,ManualCondition,ReleasePromotionCondition,SelfPromotionCondition,UpstreamPromotionCondition
public abstract class PromotionCondition
extends Object
implements ExtensionPoint, Describable<PromotionCondition>
Extension point for defining a promotion criteria.
- Author:
 - Kohsuke Kawaguchi
 
- 
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionall()Returns all the registeredPromotionConditionDescriptors.static List<PromotionConditionDescriptor>getApplicableTriggers(AbstractProject<?, ?> p) Returns a subset ofPromotionConditionDescriptors that applys to the given project.isMet(AbstractBuild<?, ?> build) Deprecated.isMet(PromotionProcess promotionProcess, AbstractBuild<?, ?> build) Checks if the promotion criteria is met. 
- 
Constructor Details
- 
PromotionCondition
public PromotionCondition() 
 - 
 - 
Method Details
- 
isMet
Deprecated.Checks if the promotion criteria is met.- Parameters:
 build- The build for which the promotion is considered.- Returns:
 - non-null if the promotion condition is met. This object is then recorded so that we know how a build was promoted. Null if otherwise, meaning it shouldn't be promoted.
 
 - 
isMet
Checks if the promotion criteria is met.- Parameters:
 promotionProcess- The promotion process being evaluated for qualificationbuild- The build for which the promotion is considered.- Returns:
 - non-null if the promotion condition is met. This object is then recorded so that we know how a build was promoted. Null if otherwise, meaning it shouldn't be promoted.
 
 - 
getDescriptor
- Specified by:
 getDescriptorin interfaceDescribable<PromotionCondition>
 - 
all
Returns all the registeredPromotionConditionDescriptors. - 
getApplicableTriggers
Returns a subset ofPromotionConditionDescriptors that applys to the given project. 
 -