com.atlassian.bamboo.events
Class BuildNumberStamper

java.lang.Object
  extended by com.atlassian.bamboo.events.DefaultBuildEventListener
      extended by com.atlassian.bamboo.events.BuildNumberStamper
All Implemented Interfaces:
BuildEventListener

public class BuildNumberStamper
extends DefaultBuildEventListener

This class generates a file containing the number of the build.


Field Summary
static String BUILD_STAMP_FILENAME
           
 
Fields inherited from class com.atlassian.bamboo.events.DefaultBuildEventListener
buildManager
 
Fields inherited from interface com.atlassian.bamboo.event.BuildEventListener
DISABLE_NOTIFICATION_SYSTEM_PROPERTY
 
Constructor Summary
BuildNumberStamper()
           
 
Method Summary
 void onBuildStart(Build build, long buildNumber)
          Be notified when a build build has started

The default behaviour is to do nothing

 
Methods inherited from class com.atlassian.bamboo.events.DefaultBuildEventListener
getBuildManager, getPreviousBuildState, getServerBaseUrl, onBuildComplete, onDeletedBuild, onDeletedBuildResult, onNewBuild, setBuildManager, systemHasBeenConfigured
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUILD_STAMP_FILENAME

public static final String BUILD_STAMP_FILENAME
See Also:
Constant Field Values
Constructor Detail

BuildNumberStamper

public BuildNumberStamper()
Method Detail

onBuildStart

public void onBuildStart(Build build,
                         long buildNumber)
                  throws Exception
Description copied from class: DefaultBuildEventListener
Be notified when a build build has started

The default behaviour is to do nothing

Specified by:
onBuildStart in interface BuildEventListener
Overrides:
onBuildStart in class DefaultBuildEventListener
Parameters:
build - The build being built
buildNumber - The build number
Throws:
Exception - A generic failure


Copyright © 2006 Atlassian Software Systems. All Rights Reserved.