org.jvnet.hudson.plugins.repositoryconnector
Class ArtifactResolver

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Builder
          extended by 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 Class Summary
static class ArtifactResolver.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 List<Artifact> artifacts
           
static ArtifactResolver.DescriptorImpl DESCRIPTOR
           
 boolean enableRepoLogging
           
 boolean failOnError
           
 String releaseChecksumPolicy
           
 String releaseUpdatePolicy
           
 String snapshotChecksumPolicy
           
 String snapshotUpdatePolicy
           
 String targetDirectory
           
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
ArtifactResolver(String targetDirectory, List<Artifact> artifacts, boolean failOnError, boolean enableRepoLogging, String snapshotUpdatePolicy, String snapshotChecksumPolicy, String releaseUpdatePolicy, String releaseChecksumPolicy)
           
 
Method Summary
 boolean enableRepoLogging()
           
 boolean failOnError()
           
 List<Artifact> getArtifacts()
          gets the artifacts
 ArtifactResolver.DescriptorImpl getDescriptor()
           
 String getTargetDirectory()
           
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 
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
 

Field Detail

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
Constructor Detail

ArtifactResolver

@DataBoundConstructor
public ArtifactResolver(String targetDirectory,
                                             List<Artifact> artifacts,
                                             boolean failOnError,
                                             boolean enableRepoLogging,
                                             String snapshotUpdatePolicy,
                                             String snapshotChecksumPolicy,
                                             String releaseUpdatePolicy,
                                             String releaseChecksumPolicy)
Method Detail

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.