com.atlassian.bamboo.build
Class BuildArtifactCopier
java.lang.Object
com.atlassian.bamboo.events.DefaultBuildEventListener
com.atlassian.bamboo.build.BuildArtifactCopier
- All Implemented Interfaces:
- BuildEventListener
public class BuildArtifactCopier
- extends DefaultBuildEventListener
This class copies the build's custom build artifacts to the artifacts directory in the web app root
so they can be accessed from the web app.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BuildArtifactCopier
public BuildArtifactCopier(ErrorHandler errorHandler,
Persister persister)
onBuildComplete
public void onBuildComplete(Build build,
BuildResults buildResults)
throws Exception
- Copy all of the build's artifacts for this build across to the builds artifact directory
- Specified by:
onBuildComplete in interface BuildEventListener- Overrides:
onBuildComplete in class DefaultBuildEventListener
- Parameters:
build - The build that has just been builtbuildResults - The build results
- Throws:
Exception - A Generic failure
onDeletedBuild
public void onDeletedBuild(Build build)
throws Exception
- Remove the build's artifact files as the build is about to be zapped
- Specified by:
onDeletedBuild in interface BuildEventListener- Overrides:
onDeletedBuild in class DefaultBuildEventListener
- Parameters:
build - The build to be zapped
- Throws:
Exception - A generic failure
onDeletedBuildResult
public void onDeletedBuildResult(Build build,
long buildNumber)
- Delete the build's artifact files
- Specified by:
onDeletedBuildResult in interface BuildEventListener- Overrides:
onDeletedBuildResult in class DefaultBuildEventListener
- Parameters:
build - The build who's build is being deletedbuildNumber - The build who's artifacts are being deleted
copyArtifactsIntoDestinationDirectory
public void copyArtifactsIntoDestinationDirectory(Build build,
File destDirectory,
File sourceRootDirectory,
String copyPattern)
Copyright © 2006 Atlassian Software Systems. All Rights Reserved.