com.atlassian.bamboo.vcsversion
Class VCSVersionReader

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.task.AbstractBuildTask
      extended by com.atlassian.bamboo.vcsversion.VCSVersionReader
All Implemented Interfaces:
CustomPreBuildAction, BambooPluginModule, AgentBuildTask, BuildTask, java.util.concurrent.Callable<BuildContext>

public class VCSVersionReader
extends AbstractBuildTask
implements CustomPreBuildAction


Field Summary
static java.lang.String CVS_UPDATE_TIME
           
static java.lang.String CVS_UPDATE_TIME_LABEL
           
static java.lang.String P4_LASTCHANGE_REVISION_NUMBER
           
static java.lang.String P4_REVISION_NUMBER
           
static java.lang.String P4_USER_NAME
           
static java.lang.String SVN_LASTCHANGE_REVISION_NUMBER
           
static java.lang.String SVN_REVISION_NUMBER
           
static java.lang.String SVN_USER_NAME
           
 
Fields inherited from class com.atlassian.bamboo.v2.build.task.AbstractBuildTask
buildContext
 
Constructor Summary
VCSVersionReader()
           
 
Method Summary
 BuildContext call()
          Execute the build task.
 ErrorCollection validate(BuildConfiguration buildConfiguration)
          Validate the build configuration when trying to save configuration for the Build This is used if the CustomPreBuildAction needs to have configuration stored against the build plan.
 
Methods inherited from class com.atlassian.bamboo.v2.build.task.AbstractBuildTask
init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.v2.build.task.BuildTask
init
 

Field Detail

SVN_REVISION_NUMBER

public static final java.lang.String SVN_REVISION_NUMBER
See Also:
Constant Field Values

SVN_LASTCHANGE_REVISION_NUMBER

public static final java.lang.String SVN_LASTCHANGE_REVISION_NUMBER
See Also:
Constant Field Values

SVN_USER_NAME

public static final java.lang.String SVN_USER_NAME
See Also:
Constant Field Values

CVS_UPDATE_TIME

public static final java.lang.String CVS_UPDATE_TIME
See Also:
Constant Field Values

CVS_UPDATE_TIME_LABEL

public static final java.lang.String CVS_UPDATE_TIME_LABEL
See Also:
Constant Field Values

P4_REVISION_NUMBER

public static final java.lang.String P4_REVISION_NUMBER
See Also:
Constant Field Values

P4_LASTCHANGE_REVISION_NUMBER

public static final java.lang.String P4_LASTCHANGE_REVISION_NUMBER
See Also:
Constant Field Values

P4_USER_NAME

public static final java.lang.String P4_USER_NAME
See Also:
Constant Field Values
Constructor Detail

VCSVersionReader

public VCSVersionReader()
Method Detail

call

@NotNull
public BuildContext call()
                  throws java.lang.Exception
Description copied from interface: BuildTask

Execute the build task.

Implementations should regularly check if the calling Thread has been interrupted.

Specified by:
call in interface BuildTask
Specified by:
call in interface java.util.concurrent.Callable<BuildContext>
Throws:
java.lang.InterruptedException - if the calling Thread has been interrupted.
java.lang.Exception - A general exception that will be handled.

validate

@Nullable
public ErrorCollection validate(BuildConfiguration buildConfiguration)
Description copied from interface: CustomPreBuildAction
Validate the build configuration when trying to save configuration for the Build This is used if the CustomPreBuildAction needs to have configuration stored against the build plan.

Specified by:
validate in interface CustomPreBuildAction
Returns:


Copyright © 2011 Atlassian. All Rights Reserved.