Class PipelineTriggerService
java.lang.Object
org.jenkinsci.plugins.pipeline.maven.service.PipelineTriggerService
- Author:
- Cyrille Le Clerc
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkNoInfiniteLoopOfUpstreamCause
(Run initialBuild) Check NO infinite loop of job triggers caused byCause.UpstreamCause
.getWorkflowJobDependencyTrigger
(ParameterizedJobMixIn.ParameterizedJob parameterizedJob) boolean
isDownstreamVisibleByUpstreamBuildAuth
(Item downstreamPipeline) boolean
isUpstreamBuildVisibleByDownstreamBuildAuth
(Job<?, ?> upstreamPipeline, Job<?, ?> downstreamPipeline) triggerDownstreamPipelines
(String groupId, String artifactId, String baseVersion, String version, String type, MavenDependencyCause cause, ServiceLogger logger) triggerDownstreamPipelines
(Collection<org.jenkinsci.plugins.pipeline.maven.MavenArtifact> upstreamArtifacts, MavenDependencyCause cause, ServiceLogger logger)
-
Constructor Details
-
PipelineTriggerService
-
-
Method Details
-
triggerDownstreamPipelines
public Collection<String> triggerDownstreamPipelines(@NonNull String groupId, @NonNull String artifactId, @Nullable String baseVersion, @NonNull String version, @NonNull String type, @NonNull MavenDependencyCause cause, @NonNull ServiceLogger logger) -
triggerDownstreamPipelines
public Collection<String> triggerDownstreamPipelines(@NonNull Collection<org.jenkinsci.plugins.pipeline.maven.MavenArtifact> upstreamArtifacts, @NonNull MavenDependencyCause cause, @NonNull ServiceLogger logger) -
checkNoInfiniteLoopOfUpstreamCause
public void checkNoInfiniteLoopOfUpstreamCause(@NonNull Run initialBuild) throws IllegalStateException Check NO infinite loop of job triggers caused byCause.UpstreamCause
.- Parameters:
initialBuild
-- Throws:
IllegalStateException
- if an infinite loop is detected
-
getWorkflowJobDependencyTrigger
@Nullable public WorkflowJobDependencyTrigger getWorkflowJobDependencyTrigger(@NonNull ParameterizedJobMixIn.ParameterizedJob parameterizedJob) -
isUpstreamBuildVisibleByDownstreamBuildAuth
-
isDownstreamVisibleByUpstreamBuildAuth
-