Class ParameterizedSelfPromotionCondition

All Implemented Interfaces:
ExtensionPoint, Describable<PromotionCondition>

public class ParameterizedSelfPromotionCondition extends SelfPromotionCondition
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)
  • Constructor Details

    • ParameterizedSelfPromotionCondition

      @DataBoundConstructor public ParameterizedSelfPromotionCondition(boolean evenIfUnstable, String parameterName, String parameterValue)
  • Method Details

    • getParameterName

      public String getParameterName()
    • getParameterValue

      public String getParameterValue()
    • isMet

      public PromotionBadge isMet(PromotionProcess promotionProcess, AbstractBuild<?,?> build)
      Description copied from class: PromotionCondition
      Checks if the promotion criteria is met.
      Overrides:
      isMet in class SelfPromotionCondition
      Parameters:
      promotionProcess - The promotion process being evaluated for qualification
      build - 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.