Class ParameterizedSelfPromotionCondition
java.lang.Object
hudson.plugins.promoted_builds.PromotionCondition
hudson.plugins.promoted_builds.conditions.SelfPromotionCondition
hudson.plugins.promoted_builds.conditions.ParameterizedSelfPromotionCondition
- All Implemented Interfaces:
ExtensionPoint
,Describable<PromotionCondition>
PromotionCondition
that promotes a build as soon as it's done if a
given parameter has the specified value.- Author:
- Grant Limberg (glimberg at gmail.com)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Nested classes/interfaces inherited from class hudson.plugins.promoted_builds.conditions.SelfPromotionCondition
SelfPromotionCondition.RunListenerImpl
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
ConstructorDescriptionParameterizedSelfPromotionCondition
(boolean evenIfUnstable, String parameterName, String parameterValue) -
Method Summary
Modifier and TypeMethodDescriptionisMet
(PromotionProcess promotionProcess, AbstractBuild<?, ?> build) Checks if the promotion criteria is met.Methods inherited from class hudson.plugins.promoted_builds.conditions.SelfPromotionCondition
isEvenIfUnstable
Methods inherited from class hudson.plugins.promoted_builds.PromotionCondition
all, getApplicableTriggers, getDescriptor, isMet
-
Constructor Details
-
ParameterizedSelfPromotionCondition
-
-
Method Details
-
getParameterName
-
getParameterValue
-
isMet
Description copied from class:PromotionCondition
Checks if the promotion criteria is met.- Overrides:
isMet
in classSelfPromotionCondition
- 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.
-