com.atlassian.bamboo.vcsversion
Class VCSVersionReader
java.lang.Object
com.atlassian.bamboo.v2.build.task.AbstractBuildTask
com.atlassian.bamboo.vcsversion.VCSVersionReader
- All Implemented Interfaces:
- CustomPreBuildAction, BambooPluginModule, AgentBuildTask, BuildTask, java.util.concurrent.Callable<BuildContext>
public class VCSVersionReader
- extends AbstractBuildTask
- implements CustomPreBuildAction
Method Summary |
BuildContext |
call()
Execute the build task. |
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
Validate the build configuration when trying to save configuration for the Plan
This is used if the CustomPreBuildAction needs to have configuration stored
against the build plan. |
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 |
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
VCSVersionReader
public VCSVersionReader()
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
Plan
This is used if the CustomPreBuildAction needs to have configuration stored
against the build plan.
- Specified by:
validate
in interface CustomPreBuildAction
- Returns:
Copyright © 2012 Atlassian. All Rights Reserved.