hudson.plugins.promoted_builds.conditions
Class UpstreamPromotionCondition

java.lang.Object
  extended by hudson.plugins.promoted_builds.PromotionCondition
      extended by hudson.plugins.promoted_builds.conditions.UpstreamPromotionCondition
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<PromotionCondition>

public class UpstreamPromotionCondition
extends PromotionCondition

PromotionCondition that tests if 1 or more upstream promotions have occurred.

Author:
Peter Hayes

Nested Class Summary
static class UpstreamPromotionCondition.Badge
           
static class UpstreamPromotionCondition.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
UpstreamPromotionCondition(java.lang.String requiredPromotionNames)
           
 
Method Summary
 java.lang.String getRequiredPromotionNames()
           
 java.util.Set<java.lang.String> getRequiredPromotionNamesAsSet()
           
 PromotionBadge isMet(PromotionProcess promotionProcess, hudson.model.AbstractBuild<?,?> build)
          Checks if the promotion criteria is met.
 
Methods inherited from class hudson.plugins.promoted_builds.PromotionCondition
all, getApplicableTriggers, getDescriptor, isMet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpstreamPromotionCondition

public UpstreamPromotionCondition(java.lang.String requiredPromotionNames)
Method Detail

getRequiredPromotionNames

public java.lang.String getRequiredPromotionNames()

getRequiredPromotionNamesAsSet

public java.util.Set<java.lang.String> getRequiredPromotionNamesAsSet()

isMet

public PromotionBadge isMet(PromotionProcess promotionProcess,
                            hudson.model.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.


Copyright © 2004-2011. All Rights Reserved.