org.jvnet.hudson.plugins.repositoryconnector
Class ArtifactResolver
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
org.jvnet.hudson.plugins.repositoryconnector.ArtifactResolver
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Builder>, hudson.tasks.BuildStep, Serializable
public class ArtifactResolver
- extends hudson.tasks.Builder
- implements Serializable
This builder allows to resolve artifacts from a repository and copy it to any location.
- Author:
- domi
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep |
hudson.tasks.BuildStep.PublisherList |
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
Fields inherited from interface hudson.tasks.BuildStep |
BUILDERS, PUBLISHERS |
Methods inherited from class hudson.tasks.Builder |
all, getRequiredMonitorService, prebuild |
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer |
getProjectAction, getProjectAction, getProjectActions, 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, prebuild |
targetDirectory
public String targetDirectory
artifacts
public List<Artifact> artifacts
failOnError
public boolean failOnError
enableRepoLogging
public boolean enableRepoLogging
snapshotUpdatePolicy
public final String snapshotUpdatePolicy
releaseUpdatePolicy
public final String releaseUpdatePolicy
snapshotChecksumPolicy
public final String snapshotChecksumPolicy
releaseChecksumPolicy
public final String releaseChecksumPolicy
DESCRIPTOR
@Extension
public static final ArtifactResolver.DescriptorImpl DESCRIPTOR
ArtifactResolver
@DataBoundConstructor
public ArtifactResolver(String targetDirectory,
List<Artifact> artifacts,
boolean failOnError,
boolean enableRepoLogging,
String snapshotUpdatePolicy,
String snapshotChecksumPolicy,
String releaseUpdatePolicy,
String releaseChecksumPolicy)
getTargetDirectory
public String getTargetDirectory()
failOnError
public boolean failOnError()
enableRepoLogging
public boolean enableRepoLogging()
getArtifacts
public List<Artifact> getArtifacts()
- gets the artifacts
- Returns:
perform
public boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
- Specified by:
perform
in interface hudson.tasks.BuildStep
- Overrides:
perform
in class hudson.tasks.BuildStepCompatibilityLayer
getDescriptor
public ArtifactResolver.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Builder>
- Overrides:
getDescriptor
in class hudson.tasks.Builder
Copyright © 2010-2014. All Rights Reserved.