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