hudson.plugins.mavendeploymentlinker
Class MavenDeploymentDownloader

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Builder
          extended by hudson.plugins.mavendeploymentlinker.MavenDeploymentDownloader
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Builder>, hudson.tasks.BuildStep

public class MavenDeploymentDownloader
extends hudson.tasks.Builder

This builder is able to resolve the linked maven artifacts on other projects and use the information to download the deployed artifacts to the local workspace. This allows to save space on the master, by not having to archive the artifacts for the copyartifact plugin.

Author:
Dominik Bartholdi (imod)

Nested Class Summary
static class MavenDeploymentDownloader.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
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
MavenDeploymentDownloader(String projectName, String filePattern, String permaLink, String targetDir, boolean stripVersion, String stripVersionPattern, boolean failIfNoArtifact, boolean cleanTargetDir)
           
 
Method Summary
 MavenDeploymentDownloader.DescriptorImpl getDescriptor()
           
 String getFilePattern()
           
 String getPermaLink()
           
 String getProjectName()
           
 String getStripVersionPattern()
           
 String getTargetDir()
           
 boolean isCleanTargetDir()
           
 boolean isFailIfNoArtifact()
           
 boolean isStripVersion()
           
 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
 

Constructor Detail

MavenDeploymentDownloader

@DataBoundConstructor
public MavenDeploymentDownloader(String projectName,
                                                      String filePattern,
                                                      String permaLink,
                                                      String targetDir,
                                                      boolean stripVersion,
                                                      String stripVersionPattern,
                                                      boolean failIfNoArtifact,
                                                      boolean cleanTargetDir)
Parameters:
projectName - the name of the project to copy the artifacts from
filePattern - the pattern to find the files to be copied
permaLink - the link to the specific build to copy the artifacts from
targetDir - where to copy the artifacts to
stripVersion - strip the version of the files
stripVersionPattern - overwrite the strip pattern
failIfNoArtifact - fail if there was no artifact to copy
cleanTargetDir - remove the content of the target directory before copying the new files?
Method Detail

getProjectName

public String getProjectName()

getFilePattern

public String getFilePattern()

getTargetDir

public String getTargetDir()

isStripVersion

public boolean isStripVersion()

isCleanTargetDir

public boolean isCleanTargetDir()

getStripVersionPattern

public String getStripVersionPattern()

getPermaLink

public String getPermaLink()

isFailIfNoArtifact

public boolean isFailIfNoArtifact()

perform

public boolean perform(hudson.model.AbstractBuild<?,?> build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener listener)
                throws InterruptedException,
                       IOException
Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
Throws:
InterruptedException
IOException

getDescriptor

public MavenDeploymentDownloader.DescriptorImpl getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>
Overrides:
getDescriptor in class hudson.tasks.Builder


Copyright © 2004-2013. All Rights Reserved.