public class CopyArtifact extends Builder implements SimpleBuildStep
Modifier and Type | Class and Description |
---|---|
static class |
CopyArtifact.ConverterImpl |
static class |
CopyArtifact.DescriptorImpl |
static class |
CopyArtifact.ListenerImpl |
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
BuildStep.PublisherList
ExtensionPoint.LegacyInstancesAreScopedToHudson
BUILDERS, PUBLISHERS
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
BuildSelector |
getBuildSelector()
Deprecated.
|
String |
getExcludes() |
String |
getFilter() |
String |
getParameters() |
String |
getProjectName() |
String |
getResultVariableSuffix() |
BuildSelector |
getSelector() |
String |
getTarget() |
boolean |
isFingerprintArtifacts() |
boolean |
isFlatten() |
boolean |
isOptional() |
void |
perform(Run<?,?> build,
FilePath workspace,
Launcher launcher,
TaskListener listener) |
void |
setExcludes(String excludes) |
void |
setFilter(String filter) |
void |
setFingerprintArtifacts(boolean fingerprintArtifacts) |
void |
setFlatten(boolean flatten) |
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 |
setTarget(String target) |
static void |
upgradeCopyArtifact() |
all, getDescriptor, getRequiredMonitorService, prebuild
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
perform, perform, requiresWorkspace
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuild
@Deprecated public CopyArtifact(String projectName, String parameters, BuildSelector selector, String filter, String target, boolean flatten, boolean optional)
@Deprecated public CopyArtifact(String projectName, String parameters, BuildSelector selector, String filter, String target, boolean flatten, boolean optional, boolean fingerprintArtifacts)
@Deprecated public CopyArtifact(String projectName, String parameters, BuildSelector selector, String filter, String excludes, String target, boolean flatten, boolean optional, boolean fingerprintArtifacts)
@DataBoundConstructor public CopyArtifact(String projectName)
@DataBoundSetter public void setParameters(String parameters)
@DataBoundSetter public void setFilter(String filter)
@DataBoundSetter public void setTarget(String target)
@DataBoundSetter public void setExcludes(String excludes)
@DataBoundSetter public void setSelector(@NonNull BuildSelector selector)
@DataBoundSetter public void setFlatten(boolean flatten)
@DataBoundSetter public void setOptional(boolean optional)
@DataBoundSetter public void setFingerprintArtifacts(boolean fingerprintArtifacts)
@DataBoundSetter public void setResultVariableSuffix(String resultVariableSuffix)
resultVariableSuffix
- Variable suffix to use.@Initializer(after=JOB_LOADED) public static void upgradeCopyArtifact()
public String getProjectName()
public String getParameters()
@Deprecated public BuildSelector getBuildSelector()
public BuildSelector getSelector()
public String getFilter()
public String getExcludes()
public String getTarget()
public boolean isFlatten()
public boolean isOptional()
public String getResultVariableSuffix()
public boolean isFingerprintArtifacts()
public void perform(@NonNull Run<?,?> build, @NonNull FilePath workspace, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException
perform
in interface SimpleBuildStep
InterruptedException
IOException
Copyright © 2016–2022. All rights reserved.