Class CustomTypePipelineMavenPluginDaoDecorator
java.lang.Object
org.jenkinsci.plugins.pipeline.maven.dao.AbstractPipelineMavenPluginDaoDecorator
org.jenkinsci.plugins.pipeline.maven.dao.CustomTypePipelineMavenPluginDaoDecorator
- All Implemented Interfaces:
Closeable
,AutoCloseable
,PipelineMavenPluginDao
public class CustomTypePipelineMavenPluginDaoDecorator
extends AbstractPipelineMavenPluginDaoDecorator
This decorator handles the reporting of generated artifacts with custom types which do not match the artifact extension.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jenkinsci.plugins.pipeline.maven.dao.PipelineMavenPluginDao
PipelineMavenPluginDao.Builder
-
Field Summary
Fields inherited from class org.jenkinsci.plugins.pipeline.maven.dao.AbstractPipelineMavenPluginDaoDecorator
delegate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
recordGeneratedArtifact
(String jobFullName, int buildNumber, String groupId, String artifactId, String version, String type, String baseVersion, String repositoryUrl, boolean skipDownstreamTriggers, String extension, String classifier) Record a Maven artifact generated in a build.Methods inherited from class org.jenkinsci.plugins.pipeline.maven.dao.AbstractPipelineMavenPluginDaoDecorator
cleanup, close, deleteBuild, deleteJob, getBuilder, getDescription, getGeneratedArtifacts, isEnoughProductionGradeForTheWorkload, listDependencies, listDownstreamJobs, listDownstreamJobs, listDownstreamJobsByArtifact, listTransitiveUpstreamJobs, listTransitiveUpstreamJobs, listUpstreamJobs, recordBuildUpstreamCause, recordDependency, recordParentProject, renameJob, toPrettyString, updateBuildOnCompletion
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jenkinsci.plugins.pipeline.maven.dao.PipelineMavenPluginDao
getDefaultJdbcUrl, listDownstreamJobs
-
Constructor Details
-
CustomTypePipelineMavenPluginDaoDecorator
-
-
Method Details
-
recordGeneratedArtifact
public void recordGeneratedArtifact(@NonNull String jobFullName, int buildNumber, @NonNull String groupId, @NonNull String artifactId, @NonNull String version, @NonNull String type, @NonNull String baseVersion, @Nullable String repositoryUrl, boolean skipDownstreamTriggers, String extension, String classifier) Description copied from interface:PipelineMavenPluginDao
Record a Maven artifact generated in a build.- Specified by:
recordGeneratedArtifact
in interfacePipelineMavenPluginDao
- Overrides:
recordGeneratedArtifact
in classAbstractPipelineMavenPluginDaoDecorator
- Parameters:
jobFullName
- seeItem.getFullName()
buildNumber
- seeRun.getNumber()
groupId
- Maven artifact groupIdartifactId
- Maven artifact artifactIdversion
- Maven artifact version, the "expanded version" for snapshots who have been "mvn deploy" or equivalent (e.g. "1.1-20170808.155524-66" for "1.1-SNAPSHOT" deployed to a repo)type
- Maven artifact type (e.g. "jar", "war", "pom", hpi"...)baseVersion
- Maven artifact version, the NOT "expanded version" for snapshots who have been "mvn deploy" or equivalent (e.g. baseVersion is "1.1-SNAPSHOT" for a "1.1-SNAPSHOT" artifact that has been deployed to a repo and expanded to "1.1-20170808.155524-66")repositoryUrl
- URL of the Maven repository on which the artifact is deployed ("mvn deploy").null
if the artifact was not deployedskipDownstreamTriggers
- see PipelineGraphPublisher#isSkipDownstreamTriggers()
-