hudson.plugins.mavendeploymentlinker
Class MavenDeploymentDownloader
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
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 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 |
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 fromfilePattern
- the pattern to find the files to be copiedpermaLink
- the link to the specific build to copy the artifacts fromtargetDir
- where to copy the artifacts tostripVersion
- strip the version of the filesstripVersionPattern
- overwrite the strip patternfailIfNoArtifact
- fail if there was no artifact to copycleanTargetDir
- remove the content of the target directory before copying the new files?
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.