Class GroovyCondition

    • Constructor Detail

      • GroovyCondition

        @DataBoundConstructor
        public GroovyCondition​(org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript script,
                               String unmetQualificationLabel,
                               String metQualificationLabel)
    • Method Detail

      • getScript

        public org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript getScript()
      • getUnmetQualificationLabel

        public String getUnmetQualificationLabel()
      • getMetQualificationLabel

        public String getMetQualificationLabel()
      • getDisplayLabel

        public String getDisplayLabel()
      • isMet

        public PromotionBadge isMet​(PromotionProcess promotionProcess,
                                    AbstractBuild<?,​?> build)
        Description copied from class: PromotionCondition
        Checks if the promotion criteria is met.
        Overrides:
        isMet in class PromotionCondition
        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.