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
Modifier and TypeClassDescriptionstatic final class
static final class
static class
Remembers those downstream jobs that are not related by fingerprint but by the triggering relationship.static final class
RunListener
to pick up completions of downstream builds.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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.getJobs()
boolean
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
-
Constructor Details
-
DownstreamPassCondition
-
DownstreamPassCondition
-
-
Method Details
-
getJobs
-
isEvenIfUnstable
public boolean isEvenIfUnstable() -
isMet
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.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)