hudson.plugins.copyartifact
Class CopyArtifact

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Builder
          extended by hudson.plugins.copyartifact.CopyArtifact
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Builder>, hudson.tasks.BuildStep

public class CopyArtifact
extends hudson.tasks.Builder

Build step to copy artifacts from another project.

Author:
Alan Harder

Nested Class Summary
static class CopyArtifact.ConverterImpl
           
static class CopyArtifact.DescriptorImpl
           
static class CopyArtifact.ListenerImpl
           
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
CopyArtifact(java.lang.String projectName, BuildSelector selector, java.lang.String filter, java.lang.String target, boolean flatten, boolean optional)
           
 
Method Summary
 BuildSelector getBuildSelector()
           
 java.lang.String getFilter()
           
 java.lang.String getProjectName()
           
 java.lang.String getTarget()
           
 boolean isFlatten()
           
 boolean isOptional()
           
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 
Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, 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
 

Constructor Detail

CopyArtifact

@DataBoundConstructor
public CopyArtifact(java.lang.String projectName,
                                         BuildSelector selector,
                                         java.lang.String filter,
                                         java.lang.String target,
                                         boolean flatten,
                                         boolean optional)
Method Detail

getProjectName

public java.lang.String getProjectName()

getBuildSelector

public BuildSelector getBuildSelector()

getFilter

public java.lang.String getFilter()

getTarget

public java.lang.String getTarget()

isFlatten

public boolean isFlatten()

isOptional

public boolean isOptional()

perform

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


Copyright © 2010. All Rights Reserved.