Package hudson.plugins.copyartifact
Class CopyArtifact
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- hudson.plugins.copyartifact.CopyArtifact
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,SimpleBuildStep
public class CopyArtifact extends Builder implements SimpleBuildStep
Build step to copy artifacts from another project.- Author:
- Alan Harder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CopyArtifact.ConverterImpl
static class
CopyArtifact.DescriptorImpl
static class
CopyArtifact.ListenerImpl
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
-
Field Summary
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description CopyArtifact(String projectName)
CopyArtifact(String projectName, String parameters, BuildSelector selector, String filter, String target, boolean flatten, boolean optional)
Deprecated.CopyArtifact(String projectName, String parameters, BuildSelector selector, String filter, String target, boolean flatten, boolean optional, boolean fingerprintArtifacts)
Deprecated.CopyArtifact(String projectName, String parameters, BuildSelector selector, String filter, String excludes, String target, boolean flatten, boolean optional, boolean fingerprintArtifacts)
Deprecated.
-
Method Summary
-
Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, 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, getRequiredMonitorService, perform, prebuild
-
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
-
-
-
Constructor Detail
-
CopyArtifact
@Deprecated public CopyArtifact(String projectName, String parameters, BuildSelector selector, String filter, String target, boolean flatten, boolean optional)
Deprecated.
-
CopyArtifact
@Deprecated public CopyArtifact(String projectName, String parameters, BuildSelector selector, String filter, String target, boolean flatten, boolean optional, boolean fingerprintArtifacts)
Deprecated.
-
CopyArtifact
@Deprecated public CopyArtifact(String projectName, String parameters, BuildSelector selector, String filter, String excludes, String target, boolean flatten, boolean optional, boolean fingerprintArtifacts)
Deprecated.
-
CopyArtifact
@DataBoundConstructor public CopyArtifact(String projectName)
-
-
Method Detail
-
setParameters
@DataBoundSetter public void setParameters(String parameters)
-
setFilter
@DataBoundSetter public void setFilter(String filter)
-
setTarget
@DataBoundSetter public void setTarget(String target)
-
setExcludes
@DataBoundSetter public void setExcludes(String excludes)
-
setSelector
@DataBoundSetter public void setSelector(@NonNull BuildSelector selector)
-
setFlatten
@DataBoundSetter public void setFlatten(boolean flatten)
-
setIncludeBuildNumberInTargetPath
@DataBoundSetter public void setIncludeBuildNumberInTargetPath(boolean includeBuildNumberInTargetPath)
-
setOptional
@DataBoundSetter public void setOptional(boolean optional)
-
setFingerprintArtifacts
@DataBoundSetter public void setFingerprintArtifacts(boolean fingerprintArtifacts)
-
setResultVariableSuffix
@DataBoundSetter public void setResultVariableSuffix(String resultVariableSuffix)
Set the suffix for variables to store copying results.- Parameters:
resultVariableSuffix
- Variable suffix to use.
-
upgradeCopyArtifact
@Initializer(after=JOB_LOADED) public static void upgradeCopyArtifact()
-
getProjectName
public String getProjectName()
-
getParameters
public String getParameters()
-
getBuildSelector
@Deprecated public BuildSelector getBuildSelector()
Deprecated.
-
getSelector
public BuildSelector getSelector()
-
getFilter
public String getFilter()
-
getExcludes
public String getExcludes()
-
getTarget
public String getTarget()
-
isFlatten
public boolean isFlatten()
-
isOptional
public boolean isOptional()
-
getResultVariableSuffix
public String getResultVariableSuffix()
- Returns:
- the suffix for variables to store copying results.
-
getIncludeBuildNumberInTargetPath
public boolean getIncludeBuildNumberInTargetPath()
-
isFingerprintArtifacts
public boolean isFingerprintArtifacts()
-
perform
public void perform(@NonNull Run<?,?> build, @NonNull FilePath workspace, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException
- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
InterruptedException
IOException
-
-