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
Constructors Constructor Description MavenDependencyUpstreamCause(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
List<org.jenkinsci.plugins.pipeline.maven.MavenArtifact>
getMavenArtifacts()
String
getMavenArtifactsDescription()
List<String>
getOmittedPipelineFullNames()
List of pipeline whose trigger have been omitted because this pipeline trigger will subsequently trigger those pipeline.String
getShortDescription()
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 Detail
-
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 Detail
-
getShortDescription
public String getShortDescription()
- Overrides:
getShortDescription
in classCause.UpstreamCause
-
print
public 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 merged- Overrides:
print
in classCause.UpstreamCause
- See Also:
Cause.UpstreamCause.print(TaskListener)
-
getMavenArtifactsDescription
@NonNull public String getMavenArtifactsDescription()
- Specified by:
getMavenArtifactsDescription
in interfaceMavenDependencyCause
-
getMavenArtifacts
@NonNull public List<org.jenkinsci.plugins.pipeline.maven.MavenArtifact> getMavenArtifacts()
- Specified by:
getMavenArtifacts
in interfaceMavenDependencyCause
-
getOmittedPipelineFullNames
@NonNull public List<String> 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
public void setOmittedPipelineFullNames(List<String> omittedPipelineFullNames)
- Specified by:
setOmittedPipelineFullNames
in interfaceMavenDependencyCause
-
setMavenArtifacts
public void setMavenArtifacts(List<org.jenkinsci.plugins.pipeline.maven.MavenArtifact> mavenArtifacts)
- Specified by:
setMavenArtifacts
in interfaceMavenDependencyCause
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classCause.UpstreamCause
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classCause.UpstreamCause
-
-