Class ArtifactResolver
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- org.jvnet.hudson.plugins.repositoryconnector.ArtifactResolver
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,SimpleBuildStep
public class ArtifactResolver extends Builder implements SimpleBuildStep
This builder allows to resolve artifacts from a repository and copy it to any location.- Author:
- domi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ArtifactResolver.DescriptorImpl
-
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 ArtifactResolver(List<Artifact> artifacts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Artifact>
getArtifacts()
String
getRepositoryId()
String
getTargetDirectory()
boolean
isEnableRepositoryLogging()
boolean
isEnableTransferLogging()
void
perform(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener)
void
setEnableRepositoryLogging(boolean enableRepositoryLogging)
void
setEnableTransferLogging(boolean enableTransferLogging)
void
setRepositoryId(String repositoryId)
void
setTargetDirectory(String targetDirectory)
-
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
-
-
-
-
Method Detail
-
getRepositoryId
public String getRepositoryId()
-
getTargetDirectory
public String getTargetDirectory()
-
isEnableRepositoryLogging
public boolean isEnableRepositoryLogging()
-
isEnableTransferLogging
public boolean isEnableTransferLogging()
-
perform
public void perform(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException
- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
InterruptedException
IOException
-
setEnableRepositoryLogging
@DataBoundSetter public void setEnableRepositoryLogging(boolean enableRepositoryLogging)
-
setEnableTransferLogging
@DataBoundSetter public void setEnableTransferLogging(boolean enableTransferLogging)
-
setRepositoryId
@DataBoundSetter public void setRepositoryId(String repositoryId)
-
setTargetDirectory
@DataBoundSetter public void setTargetDirectory(String targetDirectory)
-
-