Class ThresholdCondition
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<Condition>
-
- org.jenkinsci.plugins.deployment.Condition
-
- org.jenkinsci.plugins.deployment.conditions.ThresholdCondition
-
- All Implemented Interfaces:
ExtensionPoint,Describable<Condition>
public class ThresholdCondition extends Condition
- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classThresholdCondition.DescritorImpl-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static intNO_MATCH
-
Constructor Summary
Constructors Constructor Description ThresholdCondition(String env, int threshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Fingerprint.RangeSetcalcMatchingBuildNumberOf(Job upstream, DeploymentFacet<?> facet)Checks if the specifiedDeploymentFacetwould meet the deployment condition of the givenJob.StringgetEnv()intgetThreshold()-
Methods inherited from class org.jenkinsci.plugins.deployment.Condition
calcMatchingBuildNumberOf, getDescriptor
-
-
-
-
Field Detail
-
NO_MATCH
public static final int NO_MATCH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ThresholdCondition
@DataBoundConstructor public ThresholdCondition(String env, int threshold)
-
-
Method Detail
-
getEnv
public String getEnv()
-
getThreshold
public int getThreshold()
-
calcMatchingBuildNumberOf
public Fingerprint.RangeSet calcMatchingBuildNumberOf(Job upstream, DeploymentFacet<?> facet)
Description copied from class:ConditionChecks 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.- Specified by:
calcMatchingBuildNumberOfin classCondition
-
-