Package hudson.maven.reporters
Class MavenAbstractArtifactRecord<T extends AbstractBuild<?,?>>
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.TaskAction
hudson.maven.reporters.MavenAbstractArtifactRecord<T>
- All Implemented Interfaces:
Action,BuildBadgeAction,ModelObject,SearchableModelObject,SearchItem
- Direct Known Subclasses:
MavenAggregatedArtifactRecord,MavenArtifactRecord
public abstract class MavenAbstractArtifactRecord<T extends AbstractBuild<?,?>>
extends TaskAction
implements BuildBadgeAction
UI to redeploy artifacts after the fact.
There are two types — one for the module, the other for the whole project. The semantics specific to these cases are defined in subtypes.
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanDebug probe for HUDSON-1461.Records of a deployment.static final PermissionPermission for redeploying artifacts.Fields inherited from class hudson.model.TaskAction
log, workerThread -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voiddeploy(hudson.maven.MavenEmbedder embedder, org.apache.maven.artifact.repository.ArtifactRepository deploymentRepository, TaskListener listener) Deploys the artifacts to the specifiedArtifactRepository.final org.kohsuke.stapler.HttpResponsedoRedeploy(String id, String repositoryUrl, boolean uniqueVersion) Performs a redeployment.protected ACLgetACL()getApi()abstract TgetBuild()Gets the parent build object to which this record is registered.final StringgetDynamic(String token, org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) MavenAbstractArtifactRecord<T>.hudson.maven.reporters.MavenAbstractArtifactRecord.HistoryWidgetImplfinal Stringprotected Permissionfinal StringbooleanhasBadge()Methods inherited from class hudson.model.TaskAction
doClearError, doProgressiveHtml, doProgressiveLog, getLog, getSearchUrl, getWorkerThread, obtainLogMethods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendError
-
Field Details
-
records
@Exported public final CopyOnWriteArrayList<MavenAbstractArtifactRecord<T extends AbstractBuild<?,?>>.Record> recordsRecords of a deployment. -
REDEPLOY
Permission for redeploying artifacts. -
debug
public static boolean debugDebug probe for HUDSON-1461.
-
-
Constructor Details
-
MavenAbstractArtifactRecord
public MavenAbstractArtifactRecord()
-
-
Method Details
-
getBuild
Gets the parent build object to which this record is registered. -
getACL
- Specified by:
getACLin classTaskAction
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction- Specified by:
getIconFileNamein classTaskAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
getPermission
- Specified by:
getPermissionin classTaskAction
-
getApi
-
hasBadge
public boolean hasBadge() -
getHistoryWidget
public MavenAbstractArtifactRecord<T>.hudson.maven.reporters.MavenAbstractArtifactRecord.HistoryWidgetImpl getHistoryWidget() -
getDynamic
-
doRedeploy
public final org.kohsuke.stapler.HttpResponse doRedeploy(@QueryParameter("_.id") String id, @QueryParameter("_.url") String repositoryUrl, @QueryParameter("_.uniqueVersion") boolean uniqueVersion) throws jakarta.servlet.ServletException, IOException Performs a redeployment.- Throws:
jakarta.servlet.ServletExceptionIOException
-
deploy
public abstract void deploy(hudson.maven.MavenEmbedder embedder, org.apache.maven.artifact.repository.ArtifactRepository deploymentRepository, TaskListener listener) throws hudson.maven.MavenEmbedderException, IOException, org.codehaus.plexus.component.repository.exception.ComponentLookupException, org.apache.maven.artifact.deployer.ArtifactDeploymentException Deploys the artifacts to the specifiedArtifactRepository.- Parameters:
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.- Throws:
hudson.maven.MavenEmbedderExceptionIOExceptionorg.codehaus.plexus.component.repository.exception.ComponentLookupExceptionorg.apache.maven.artifact.deployer.ArtifactDeploymentException
-