Class PromotionBadge

java.lang.Object
hudson.plugins.promoted_builds.PromotionBadge
Direct Known Subclasses:
DownstreamPassCondition.Badge, GroovyCondition.Badge, ManualCondition.Badge, ManualPromotionBadge, ParameterizedSelfPromotionBadge, SelfPromotionBadge, UpstreamPromotionCondition.Badge

@ExportedBean public abstract class PromotionBadge extends Object
Captures the information about how/when the promotion criteria is satisfied.

This information is used by humans to make sense out of what happened.

Author:
Kohsuke Kawaguchi
  • Constructor Details

    • PromotionBadge

      public PromotionBadge()
  • Method Details

    • buildEnvVars

      public void buildEnvVars(AbstractBuild<?,?> build, EnvVars env)
      Called by Status to allow promotion badges to contribute environment variables.
      Parameters:
      build - The calling build. Never null.
      env - Environment variables should be added to this map.