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 classstatic final classstatic final classNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested 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.booleanbooleanbooleanbooleanvoidperform(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) voidsetExcludes(String excludes) voidvoidsetFingerprintArtifacts(boolean fingerprintArtifacts) voidsetFlatten(boolean flatten) voidsetIncludeBuildNumberInTargetPath(boolean includeBuildNumberInTargetPath) voidsetOptional(boolean optional) voidsetParameters(String parameters) voidsetResultVariableSuffix(String resultVariableSuffix) Set the suffix for variables to store copying results.voidsetSelector(BuildSelector selector) voidstatic voidMethods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuildMethods 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:
performin interfaceSimpleBuildStep- Throws:
InterruptedExceptionIOException
-