Class MavenAbstractArtifactRecord<T extends AbstractBuild<?,​?>>

    • Constructor Detail

      • MavenAbstractArtifactRecord

        public MavenAbstractArtifactRecord()
    • Method Detail

      • getBuild

        public abstract T getBuild()
        Gets the parent build object to which this record is registered.
      • getApi

        public Api getApi()
      • hasBadge

        public boolean hasBadge()
      • getHistoryWidget

        public hudson.maven.reporters.MavenAbstractArtifactRecord.HistoryWidgetImpl getHistoryWidget()
      • getDynamic

        public Object getDynamic​(String token,
                                 org.kohsuke.stapler.StaplerRequest req,
                                 org.kohsuke.stapler.StaplerResponse rsp)
      • doRedeploy

        public final org.kohsuke.stapler.HttpResponse doRedeploy​(@QueryParameter("_.id")
                                                                 String id,
                                                                 @QueryParameter("_.url")
                                                                 String repositoryUrl,
                                                                 @QueryParameter("_.uniqueVersion")
                                                                 boolean uniqueVersion)
                                                          throws javax.servlet.ServletException,
                                                                 IOException
        Performs a redeployment.
        Throws:
        javax.servlet.ServletException
        IOException
      • 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 specified ArtifactRepository.
        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.MavenEmbedderException
        IOException
        org.codehaus.plexus.component.repository.exception.ComponentLookupException
        org.apache.maven.artifact.deployer.ArtifactDeploymentException