Class DownstreamPassCondition
java.lang.Object
hudson.plugins.promoted_builds.PromotionCondition
hudson.plugins.promoted_builds.conditions.DownstreamPassCondition
- All Implemented Interfaces:
ExtensionPoint,Describable<PromotionCondition>
PromotionCondition that tests if certain downstream projects have passed.- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic classRemembers those downstream jobs that are not related by fingerprint but by the triggering relationship.static final classRunListenerto pick up completions of downstream builds.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(AbstractProject<?, ?> job) Deprecated.booleancontains(ItemGroup ctx, AbstractProject<?, ?> job) booleancontains(ItemGroup ctx, AbstractProject<?, ?> job, EnvVars environment) Checks if the configured jobs property contains job.List<AbstractProject<?,?>> getJobList(ItemGroup context) Deprecated.usegetJobList(hudson.model.ItemGroup, hudson.EnvVars)List of downstream jobs that we need to monitor.List<AbstractProject<?,?>> getJobList(ItemGroup context, EnvVars buildEnvironment) List of downstream jobs that we need to monitor resolving variables.getJobs()booleanisMet(PromotionProcess promotionProcess, AbstractBuild<?, ?> build) Checks if the promotion criteria is met.Methods inherited from class hudson.plugins.promoted_builds.PromotionCondition
all, getApplicableTriggers, getDescriptor, isMet
-
Constructor Details
-
DownstreamPassCondition
-
DownstreamPassCondition
-
-
Method Details
-
getJobs
-
isEvenIfUnstable
public boolean isEvenIfUnstable() -
isMet
Description copied from class:PromotionConditionChecks if the promotion criteria is met.- Overrides:
isMetin classPromotionCondition- 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.
-
getJobList
Deprecated.usegetJobList(hudson.model.ItemGroup, hudson.EnvVars)List of downstream jobs that we need to monitor.- Returns:
- never null.
-
getJobList
List of downstream jobs that we need to monitor resolving variables.- Returns:
- never null.
- Since:
- 2.33
-
contains
-
contains
Checks if the configured jobs property contains job. Resolves jobs property first.- Since:
- 2.33
-
contains
Deprecated.Short-cut forgetJobList().contains(job).
-
contains(hudson.model.ItemGroup, hudson.model.AbstractProject)