Package 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
,Callable<BuildContext>
public class VCSVersionReader extends AbstractBuildTask implements CustomPreBuildAction
-
-
Field Summary
Fields Modifier and Type Field Description static String
P4_LASTCHANGE_REVISION_NUMBER
static String
P4_REVISION_NUMBER
static String
P4_USER_NAME
static String
SVN_REVISION_NUMBER
static String
SVN_USER_NAME
-
Fields inherited from class com.atlassian.bamboo.v2.build.task.AbstractBuildTask
buildContext
-
-
Constructor Summary
Constructors Constructor Description VCSVersionReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull BuildContext
call()
Execute the build task.void
setCustomVariableContext(CustomVariableContext customVariableContext)
void
setVcsRepositoryManager(VcsRepositoryManager vcsRepositoryManager)
@Nullable ErrorCollection
validate(BuildConfiguration buildConfiguration)
Validate the build configuration when trying to save configuration for thePlan
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
calculateBuildAndLifeCycleState, init
-
-
-
-
Field Detail
-
SVN_REVISION_NUMBER
public static final String SVN_REVISION_NUMBER
- See Also:
- Constant Field Values
-
SVN_USER_NAME
public static final String SVN_USER_NAME
- See Also:
- Constant Field Values
-
P4_REVISION_NUMBER
public static final String P4_REVISION_NUMBER
- See Also:
- Constant Field Values
-
P4_LASTCHANGE_REVISION_NUMBER
public static final String P4_LASTCHANGE_REVISION_NUMBER
- See Also:
- Constant Field Values
-
P4_USER_NAME
public static final String P4_USER_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
call
@NotNull public @NotNull BuildContext call()
Description copied from interface:BuildTask
Execute the build task.
Implementations should regularly check if the calling
Thread
has been interrupted.- Specified by:
call
in interfaceBuildTask
- Specified by:
call
in interfaceCallable<BuildContext>
-
validate
@Nullable public @Nullable ErrorCollection validate(BuildConfiguration buildConfiguration)
Description copied from interface:CustomPreBuildAction
Validate the build configuration when trying to save configuration for thePlan
This is used if the CustomPreBuildAction needs to have configuration stored against the build plan.- Specified by:
validate
in interfaceCustomPreBuildAction
- Returns:
-
setCustomVariableContext
public void setCustomVariableContext(CustomVariableContext customVariableContext)
-
setVcsRepositoryManager
public void setVcsRepositoryManager(VcsRepositoryManager vcsRepositoryManager)
-
-