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 StringP4_LASTCHANGE_REVISION_NUMBERstatic StringP4_REVISION_NUMBERstatic StringP4_USER_NAMEstatic StringSVN_REVISION_NUMBERstatic StringSVN_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 BuildContextcall()Execute the build task.voidsetCustomVariableContext(CustomVariableContext customVariableContext)voidsetVcsRepositoryManager(VcsRepositoryManager vcsRepositoryManager)@Nullable ErrorCollectionvalidate(BuildConfiguration buildConfiguration)Validate the build configuration when trying to save configuration for thePlanThis 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:BuildTaskExecute the build task.
Implementations should regularly check if the calling
Threadhas been interrupted.- Specified by:
callin interfaceBuildTask- Specified by:
callin interfaceCallable<BuildContext>
-
validate
@Nullable public @Nullable ErrorCollection validate(BuildConfiguration buildConfiguration)
Description copied from interface:CustomPreBuildActionValidate the build configuration when trying to save configuration for thePlanThis is used if the CustomPreBuildAction needs to have configuration stored against the build plan.- Specified by:
validatein interfaceCustomPreBuildAction- Returns:
-
setCustomVariableContext
public void setCustomVariableContext(CustomVariableContext customVariableContext)
-
setVcsRepositoryManager
public void setVcsRepositoryManager(VcsRepositoryManager vcsRepositoryManager)
-
-