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.RangeSet
calcMatchingBuildNumberOf(Job upstream, Fingerprint f)
abstract Fingerprint.RangeSet
calcMatchingBuildNumberOf(Job upstream, DeploymentFacet<?> facet)
Checks if the specifiedDeploymentFacet
would meet the deployment condition of the givenJob
.ConditionDescriptor
getDescriptor()
-
-
-
Method Detail
-
calcMatchingBuildNumberOf
public abstract Fingerprint.RangeSet calcMatchingBuildNumberOf(Job upstream, DeploymentFacet<?> facet)
Checks if the specifiedDeploymentFacet
would 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:
getDescriptor
in interfaceDescribable<Condition>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<Condition>
-
-