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 class
ThresholdCondition.DescritorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static int
NO_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.RangeSet
calcMatchingBuildNumberOf(Job upstream, DeploymentFacet<?> facet)
Checks if the specifiedDeploymentFacet
would meet the deployment condition of the givenJob
.String
getEnv()
int
getThreshold()
-
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:Condition
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.- Specified by:
calcMatchingBuildNumberOf
in classCondition
-
-