Class MavenDependencyUpstreamCause
java.lang.Object
hudson.model.Cause
hudson.model.Cause.UpstreamCause
org.jenkinsci.plugins.pipeline.maven.cause.MavenDependencyUpstreamCause
- All Implemented Interfaces:
MavenDependencyCause
public class MavenDependencyUpstreamCause
extends Cause.UpstreamCause
implements MavenDependencyCause
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Cause.UpstreamCause
Cause.UpstreamCause.ConverterImpl, Cause.UpstreamCause.DeeplyNestedUpstreamCause
Nested classes/interfaces inherited from class hudson.model.Cause
Cause.LegacyCodeCause, Cause.RemoteCause, Cause.UpstreamCause, Cause.UserCause, Cause.UserIdCause
-
Constructor Summary
ConstructorDescriptionMavenDependencyUpstreamCause
(Run<?, ?> up, Collection<org.jenkinsci.plugins.pipeline.maven.MavenArtifact> mavenArtifacts, Collection<String> omittedPipelineFullNames) MavenDependencyUpstreamCause
(Run<?, ?> up, org.jenkinsci.plugins.pipeline.maven.MavenArtifact... mavenArtifact) -
Method Summary
Modifier and TypeMethodDescriptionboolean
List<org.jenkinsci.plugins.pipeline.maven.MavenArtifact>
List of pipeline whose trigger have been omitted because this pipeline trigger will subsequently trigger those pipeline.int
hashCode()
void
print
(TaskListener listener) TODO create a PR on jenkins-core to makeCause.UpstreamCause.indent(TaskListener, int)
protected instead of private and delete this method once the PR is mergedvoid
setMavenArtifacts
(List<org.jenkinsci.plugins.pipeline.maven.MavenArtifact> mavenArtifacts) void
setOmittedPipelineFullNames
(List<String> omittedPipelineFullNames) Methods inherited from class hudson.model.Cause.UpstreamCause
getUpstreamBuild, getUpstreamCauses, getUpstreamProject, getUpstreamRun, getUpstreamUrl, onLoad, pointsTo, pointsTo, toString
-
Constructor Details
-
MavenDependencyUpstreamCause
public MavenDependencyUpstreamCause(Run<?, ?> up, @NonNull org.jenkinsci.plugins.pipeline.maven.MavenArtifact... mavenArtifact) -
MavenDependencyUpstreamCause
public MavenDependencyUpstreamCause(Run<?, ?> up, @Nullable Collection<org.jenkinsci.plugins.pipeline.maven.MavenArtifact> mavenArtifacts, @Nullable Collection<String> omittedPipelineFullNames)
-
-
Method Details
-
getShortDescription
- Overrides:
getShortDescription
in classCause.UpstreamCause
-
print
TODO create a PR on jenkins-core to makeCause.UpstreamCause.indent(TaskListener, int)
protected instead of private and delete this method once the PR is merged- Overrides:
print
in classCause.UpstreamCause
- See Also:
-
getMavenArtifactsDescription
- Specified by:
getMavenArtifactsDescription
in interfaceMavenDependencyCause
-
getMavenArtifacts
- Specified by:
getMavenArtifacts
in interfaceMavenDependencyCause
-
getOmittedPipelineFullNames
Description copied from interface:MavenDependencyCause
List of pipeline whose trigger have been omitted because this pipeline trigger will subsequently trigger those pipeline. We have omitted these pipeline triggers to prevent excessive triggers.- Specified by:
getOmittedPipelineFullNames
in interfaceMavenDependencyCause
- Returns:
- list of
AbstractItem.getFullName()
-
setOmittedPipelineFullNames
- Specified by:
setOmittedPipelineFullNames
in interfaceMavenDependencyCause
-
setMavenArtifacts
public void setMavenArtifacts(List<org.jenkinsci.plugins.pipeline.maven.MavenArtifact> mavenArtifacts) - Specified by:
setMavenArtifacts
in interfaceMavenDependencyCause
-
equals
- Overrides:
equals
in classCause.UpstreamCause
-
hashCode
public int hashCode()- Overrides:
hashCode
in classCause.UpstreamCause
-