Package org.jenkinsci.plugins.deployment
Class Condition
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<Condition>
-
- org.jenkinsci.plugins.deployment.Condition
-
- All Implemented Interfaces:
ExtensionPoint,Describable<Condition>
- Direct Known Subclasses:
ThresholdCondition
public abstract class Condition extends AbstractDescribableImpl<Condition> implements ExtensionPoint
- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description Condition()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Fingerprint.RangeSetcalcMatchingBuildNumberOf(Job upstream, Fingerprint f)abstract Fingerprint.RangeSetcalcMatchingBuildNumberOf(Job upstream, DeploymentFacet<?> facet)Checks if the specifiedDeploymentFacetwould meet the deployment condition of the givenJob.ConditionDescriptorgetDescriptor()
-
-
-
Method Detail
-
calcMatchingBuildNumberOf
public abstract Fingerprint.RangeSet calcMatchingBuildNumberOf(Job upstream, DeploymentFacet<?> facet)
Checks if the specifiedDeploymentFacetwould meet the deployment condition of the givenJob. If so, return the build number of the job that matches, otherwise return negative number to indicate no match.
-
calcMatchingBuildNumberOf
public Fingerprint.RangeSet calcMatchingBuildNumberOf(Job upstream, Fingerprint f)
-
getDescriptor
public ConditionDescriptor getDescriptor()
- Specified by:
getDescriptorin interfaceDescribable<Condition>- Overrides:
getDescriptorin classAbstractDescribableImpl<Condition>
-
-