@ExportedBean public class MavenArtifactRecord extends MavenAbstractArtifactRecord<MavenBuild> implements AggregatableAction
Action that remembers artifacts that are built.
Defines the methods and UIs to do (delayed) deployment and installation.MavenArtifactArchiverMavenAbstractArtifactRecord.Record| Modifier and Type | Field and Description |
|---|---|
List<MavenArtifact> |
attachedArtifacts
Attached artifacts.
|
MavenArtifact |
mainArtifact
The main artifact (like jar or war, but could be anything.)
If this is a POM module, the main artifact contains the same value as
pomArtifact. |
MavenBuild |
parent
The build to which this record belongs.
|
MavenArtifact |
pomArtifact
POM artifact.
|
String |
repositoryId
The repository identifier (matching maven settings) used for credentials to deploy artifacts
|
String |
repositoryUrl
The repository URL used for credentials to deploy artifacts
|
debug, records, REDEPLOY| Constructor and Description |
|---|
MavenArtifactRecord(MavenBuild parent,
MavenArtifact pomArtifact,
MavenArtifact mainArtifact,
List<MavenArtifact> attachedArtifacts)
Deprecated.
|
MavenArtifactRecord(MavenBuild parent,
MavenArtifact pomArtifact,
MavenArtifact mainArtifact,
List<MavenArtifact> attachedArtifacts,
String repositoryUrl,
String repositoryId) |
| Modifier and Type | Method and Description |
|---|---|
MavenAggregatedArtifactRecord |
createAggregatedAction(MavenModuleSetBuild build,
Map<MavenModule,List<MavenBuild>> moduleBuilds)
Creates
Action to be contributed to MavenModuleSetBuild. |
void |
deploy(hudson.maven.MavenEmbedder embedder,
org.apache.maven.artifact.repository.ArtifactRepository deploymentRepository,
hudson.model.TaskListener listener)
Deploys the artifacts to the specified
ArtifactRepository. |
String |
getAbsoluteUrl()
Deprecated.
This method shall NEVER be used during HTML page rendering, as it's too easy for
misconfiguration to break this value, with network set up like Apache reverse proxy.
This method is only intended for the remote API clients who cannot resolve relative references.
|
MavenBuild |
getBuild()
Gets the parent build object to which this record is registered.
|
String |
getUrl()
Returns the URL of this record relative to the context root of the application.
|
boolean |
isPOM() |
doRedeploy, getACL, getApi, getDisplayName, getDynamic, getHistoryWidget, getIconFileName, getPermission, getUrlName, hasBadgedoClearError, doProgressiveHtml, doProgressiveLog, getLog, getSearchUrl, getWorkerThread, obtainLoggetSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError@Exported public final MavenBuild parent
@Exported(inline=true) public final MavenArtifact pomArtifact
@Exported(inline=true) public final MavenArtifact mainArtifact
pomArtifact.@Exported(inline=true) public final List<MavenArtifact> attachedArtifacts
public final String repositoryId
public final String repositoryUrl
@Deprecated public MavenArtifactRecord(MavenBuild parent, MavenArtifact pomArtifact, MavenArtifact mainArtifact, List<MavenArtifact> attachedArtifacts)
public MavenArtifactRecord(MavenBuild parent, MavenArtifact pomArtifact, MavenArtifact mainArtifact, List<MavenArtifact> attachedArtifacts, String repositoryUrl, String repositoryId)
public MavenBuild getBuild()
MavenAbstractArtifactRecordgetBuild in class MavenAbstractArtifactRecord<MavenBuild>public String getUrl()
for how to implement this.@Exported(visibility=2,
name="url")
public String getAbsoluteUrl()
public boolean isPOM()
public MavenAggregatedArtifactRecord createAggregatedAction(MavenModuleSetBuild build, Map<MavenModule,List<MavenBuild>> moduleBuilds)
AggregatableActionAction to be contributed to MavenModuleSetBuild.createAggregatedAction in interface AggregatableActionbuild - MavenModuleSetBuild for which the aggregated report is
created.moduleBuilds - The result of MavenModuleSetBuild.getModuleBuilds() provided
for convenience and efficiency.public void deploy(hudson.maven.MavenEmbedder embedder,
org.apache.maven.artifact.repository.ArtifactRepository deploymentRepository,
hudson.model.TaskListener listener)
throws hudson.maven.MavenEmbedderException,
IOException,
org.codehaus.plexus.component.repository.exception.ComponentLookupException,
org.apache.maven.artifact.deployer.ArtifactDeploymentException
MavenAbstractArtifactRecordArtifactRepository.deploy in class MavenAbstractArtifactRecord<MavenBuild>embedder - This component hosts all the Maven components we need to do the work.deploymentRepository - The remote repository to deploy to.listener - The status and error goes to this listener.hudson.maven.MavenEmbedderExceptionIOExceptionorg.codehaus.plexus.component.repository.exception.ComponentLookupExceptionorg.apache.maven.artifact.deployer.ArtifactDeploymentExceptionCopyright © 2016–2017. All rights reserved.