hudson.maven
Class RedeployPublisher

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Recorder
              extended by hudson.maven.RedeployPublisher
All Implemented Interfaces:
ExtensionPoint, Describable<Publisher>, BuildStep

public class RedeployPublisher
extends Recorder

Publisher for MavenModuleSetBuild to deploy artifacts after a build is fully succeeded.

Since:
1.191
Author:
Kohsuke Kawaguchi

Nested Class Summary
static class RedeployPublisher.DescriptorImpl
           
static class RedeployPublisher.WrappedArtifactRepository
           
 
Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
 
Field Summary
 boolean evenIfUnstable
           
 String id
          Repository ID.
 boolean uniqueVersion
           
 String url
          Repository URL to deploy artifacts to.
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
RedeployPublisher(String id, String url, boolean uniqueVersion)
          For backward compatibility
RedeployPublisher(String id, String url, boolean uniqueVersion, boolean evenIfUnstable)
           
 
Method Summary
protected  MavenAbstractArtifactRecord getAction(AbstractBuild<?,?> build)
          Obtains the MavenAbstractArtifactRecord that we'll work on.
protected  List<MavenAbstractArtifactRecord> getActions(AbstractBuild<?,?> build, BuildListener listener)
           
 BuildStepMonitor getRequiredMonitorService()
           
protected  Result getTreshold()
           
 boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
           
 
Methods inherited from class hudson.tasks.Recorder
getDescriptor
 
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, prebuild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, prebuild
 

Field Detail

id

public final String id
Repository ID. This is matched up with ~/.m2/settings.xml for authentication related information.


url

public final String url
Repository URL to deploy artifacts to.


uniqueVersion

public final boolean uniqueVersion

evenIfUnstable

public final boolean evenIfUnstable
Constructor Detail

RedeployPublisher

public RedeployPublisher(String id,
                         String url,
                         boolean uniqueVersion)
For backward compatibility


RedeployPublisher

@DataBoundConstructor
public RedeployPublisher(String id,
                                              String url,
                                              boolean uniqueVersion,
                                              boolean evenIfUnstable)
Since:
1.347
Method Detail

perform

public boolean perform(AbstractBuild<?,?> build,
                       Launcher launcher,
                       BuildListener listener)
                throws InterruptedException,
                       IOException
Specified by:
perform in interface BuildStep
Overrides:
perform in class BuildStepCompatibilityLayer
Throws:
InterruptedException
IOException

getAction

protected MavenAbstractArtifactRecord getAction(AbstractBuild<?,?> build)
Obtains the MavenAbstractArtifactRecord that we'll work on.

This allows promoted-builds plugin to reuse the code for delayed deployment.


getActions

protected List<MavenAbstractArtifactRecord> getActions(AbstractBuild<?,?> build,
                                                       BuildListener listener)

getRequiredMonitorService

public BuildStepMonitor getRequiredMonitorService()

getTreshold

protected Result getTreshold()


Copyright © 2004-2011. All Rights Reserved.