|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.AbstractModelObject
hudson.model.TaskAction
hudson.maven.reporters.MavenAbstractArtifactRecord<T>
public abstract class MavenAbstractArtifactRecord<T extends AbstractBuild<?,?>>
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.
| Nested Class Summary | |
|---|---|
class |
MavenAbstractArtifactRecord.Record
|
| Field Summary | |
|---|---|
static boolean |
debug
Debug probe for HUDSON-1461. |
CopyOnWriteArrayList<MavenAbstractArtifactRecord.Record> |
records
Records of a deployment. |
static Permission |
REDEPLOY
Permission for redeploying artifacts. |
| Fields inherited from class hudson.model.TaskAction |
|---|
log, workerThread |
| Constructor Summary | |
|---|---|
MavenAbstractArtifactRecord()
|
|
| Method Summary | |
|---|---|
abstract void |
deploy(hudson.maven.MavenEmbedder embedder,
org.apache.maven.artifact.repository.ArtifactRepository deploymentRepository,
TaskListener listener)
Deploys the artifacts to the specified ArtifactRepository. |
org.kohsuke.stapler.HttpResponse |
doRedeploy(String id,
String repositoryUrl,
boolean uniqueVersion)
Performs a redeployment. |
protected ACL |
getACL()
|
Api |
getApi()
|
abstract T |
getBuild()
Gets the parent build object to which this record is registered. |
String |
getDisplayName()
|
Object |
getDynamic(String token,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
|
hudson.maven.reporters.MavenAbstractArtifactRecord.HistoryWidgetImpl |
getHistoryWidget()
|
String |
getIconFileName()
|
protected Permission |
getPermission()
|
String |
getUrlName()
|
boolean |
hasBadge()
|
| Methods inherited from class hudson.model.TaskAction |
|---|
doClearError, doProgressiveHtml, doProgressiveLog, getLog, getSearchUrl, getWorkerThread, obtainLog |
| Methods inherited from class hudson.model.AbstractModelObject |
|---|
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@Exported public final CopyOnWriteArrayList<MavenAbstractArtifactRecord.Record> records
public static final Permission REDEPLOY
public static boolean debug
| Constructor Detail |
|---|
public MavenAbstractArtifactRecord()
| Method Detail |
|---|
public abstract T getBuild()
protected ACL getACL()
getACL in class TaskActionpublic final String getIconFileName()
getIconFileName in interface Actionpublic final String getDisplayName()
getDisplayName in interface ActiongetDisplayName in interface ModelObjectpublic final String getUrlName()
getUrlName in interface Actionprotected Permission getPermission()
getPermission in class TaskActionpublic Api getApi()
public boolean hasBadge()
public hudson.maven.reporters.MavenAbstractArtifactRecord.HistoryWidgetImpl getHistoryWidget()
public Object getDynamic(String token,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
public final org.kohsuke.stapler.HttpResponse doRedeploy(@QueryParameter(value="_.id")
String id,
@QueryParameter(value="_.url")
String repositoryUrl,
@QueryParameter(value="_.uniqueVersion")
boolean uniqueVersion)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletException
IOException
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
ArtifactRepository.
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.MavenEmbedderException
IOException
org.codehaus.plexus.component.repository.exception.ComponentLookupException
org.apache.maven.artifact.deployer.ArtifactDeploymentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||