org.jvnet.hudson.plugins.repositoryconnector
Class ArtifactDeployer

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Notifier
              extended by org.jvnet.hudson.plugins.repositoryconnector.ArtifactDeployer
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep, Serializable

public class ArtifactDeployer
extends hudson.tasks.Notifier
implements Serializable

This builder allows to resolve artifacts from a repository and copy it to any location.

Author:
domi
See Also:
Serialized Form

Nested Class Summary
static class ArtifactDeployer.DescriptorImpl
           
 
Nested classes/interfaces inherited from class hudson.tasks.Publisher
hudson.tasks.Publisher.DescriptorExtensionListImpl
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Field Summary
 List<Artifact> artifacts
           
static ArtifactDeployer.DescriptorImpl DESCRIPTOR
           
 boolean enableRepoLogging
           
 UserPwd overwriteSecurity
           
 String repoId
           
 String snapshotRepoId
           
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
ArtifactDeployer(List<Artifact> artifacts, String repoId, String snapshotRepoId, UserPwd overwriteSecurity, boolean enableRepoLogging)
           
 
Method Summary
 boolean enableRepoLogging()
           
 ArtifactDeployer.DescriptorImpl getDescriptor()
           
 String getPassword()
           
 Collection<Repository> getRepos()
           
 hudson.tasks.BuildStepMonitor getRequiredMonitorService()
           
 String getUserName()
           
 boolean isOverwriteSecurity()
           
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 
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

overwriteSecurity

public final UserPwd overwriteSecurity

enableRepoLogging

public boolean enableRepoLogging

repoId

public final String repoId

snapshotRepoId

public final String snapshotRepoId

artifacts

public List<Artifact> artifacts

DESCRIPTOR

@Extension
public static final ArtifactDeployer.DescriptorImpl DESCRIPTOR
Constructor Detail

ArtifactDeployer

@DataBoundConstructor
public ArtifactDeployer(List<Artifact> artifacts,
                                             String repoId,
                                             String snapshotRepoId,
                                             UserPwd overwriteSecurity,
                                             boolean enableRepoLogging)
Method Detail

enableRepoLogging

public boolean enableRepoLogging()

isOverwriteSecurity

public boolean isOverwriteSecurity()

getUserName

public String getUserName()

getPassword

public String getPassword()

getRepos

public Collection<Repository> getRepos()

getRequiredMonitorService

public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
Specified by:
getRequiredMonitorService in interface hudson.tasks.BuildStep

perform

public boolean perform(hudson.model.AbstractBuild<?,?> build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener listener)
Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer

getDescriptor

public ArtifactDeployer.DescriptorImpl getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>
Overrides:
getDescriptor in class hudson.tasks.Notifier


Copyright © 2010-2014. All Rights Reserved.