public class VCSVersionReader extends AbstractBuildTask implements CustomPreBuildAction
Modifier and Type | Field and Description |
---|---|
static String |
CVS_UPDATE_TIME |
static String |
CVS_UPDATE_TIME_LABEL |
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 |
buildContext
Constructor and Description |
---|
VCSVersionReader() |
Modifier and Type | Method and Description |
---|---|
BuildContext |
call()
Execute the build task.
|
void |
setCustomVariableContext(CustomVariableContext customVariableContext) |
void |
setVcsRepositoryManager(VcsRepositoryManager vcsRepositoryManager) |
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. |
calculateBuildAndLifeCycleState, init
public static final String SVN_REVISION_NUMBER
public static final String SVN_USER_NAME
public static final String CVS_UPDATE_TIME
public static final String CVS_UPDATE_TIME_LABEL
public static final String P4_REVISION_NUMBER
public static final String P4_LASTCHANGE_REVISION_NUMBER
public static final String P4_USER_NAME
@NotNull public BuildContext call() throws Exception
BuildTask
Execute the build task.
Implementations should regularly check if the calling Thread
has been interrupted.
call
in interface BuildTask
call
in interface Callable<BuildContext>
InterruptedException
- if the calling Thread
has been interrupted.Exception
- A general exception that will be handled.@Nullable public ErrorCollection validate(BuildConfiguration buildConfiguration)
CustomPreBuildAction
Plan
This is used if the CustomPreBuildAction needs to have configuration stored
against the build plan.validate
in interface CustomPreBuildAction
public void setCustomVariableContext(CustomVariableContext customVariableContext)
public void setVcsRepositoryManager(VcsRepositoryManager vcsRepositoryManager)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.