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
Build step to copy artifacts from another project.
- Author:
- Alan Harder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static final class
static final class
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
ConstructorsConstructorDescriptionCopyArtifact
(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
Modifier and TypeMethodDescriptionDeprecated.boolean
boolean
boolean
boolean
void
perform
(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) void
setExcludes
(String excludes) void
void
setFingerprintArtifacts
(boolean fingerprintArtifacts) void
setFlatten
(boolean flatten) void
setIncludeBuildNumberInTargetPath
(boolean includeBuildNumberInTargetPath) void
setOptional
(boolean optional) void
setParameters
(String parameters) void
setResultVariableSuffix
(String resultVariableSuffix) Set the suffix for variables to store copying results.void
setSelector
(BuildSelector selector) void
static void
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 Details
-
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
-
-
Method Details
-
setParameters
-
setFilter
-
setTarget
-
setExcludes
-
setSelector
-
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
Set the suffix for variables to store copying results.- Parameters:
resultVariableSuffix
- Variable suffix to use.
-
upgradeCopyArtifact
-
getProjectName
-
getParameters
-
getBuildSelector
Deprecated. -
getSelector
-
getFilter
-
getExcludes
-
getTarget
-
isFlatten
public boolean isFlatten() -
isOptional
public boolean isOptional() -
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
-