|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Plan
Field Summary | |
---|---|
static int |
MAX_NUMBER_LOG_ENTRIES
|
static int |
MAX_PREVIOUS_BUILD_FOR_AVE
|
static java.lang.String |
STATUS_CURRENTLY_BUILDING
|
static java.lang.String |
STATUS_FAIL
|
static java.lang.String |
STATUS_NO_BUILDS
|
static java.lang.String |
STATUS_NOT_RUN
|
static java.lang.String |
STATUS_SUCCESS
|
Method Summary | |
---|---|
long |
getAverageBuildDuration()
Returns an average duration of the recent builds |
BuildDefinition |
getBuildDefinition()
Returns the BuildDefinition that backs this buildd |
BuildDefinitionForBuild |
getBuildDefinitionXml()
|
java.lang.String |
getBuildKey()
Thie returns the build portion of the build key |
BuildLogger |
getBuildLogger()
Returns the helper object to deal with logging |
java.lang.String |
getBuildName()
Returns the name for the build in the form of "build name" e.g. |
java.lang.String |
getCurrentStatus()
Retuns a string key as to what the status is. |
int |
getFirstBuildNumber()
What the number of the first build we have? It may not be 1 as some may have been removed! |
java.lang.String |
getKey()
Obtain the build's unique key (uppercase alphanumeric). |
java.util.List<Labelling> |
getLabellings()
|
int |
getLastBuildNumber()
What was the number of the latest build (may be being built) |
java.lang.String |
getLastVcsRevisionKey()
The string value representing the last build triggered. |
ResultsSummary |
getLatestResultsSummary()
Get the summary from the latest completed plan |
java.lang.String |
getName()
Returns the full name for the build in the form of "project name - build name" e.g. |
int |
getNextBuildNumber()
The next build number represents the number of the next build result that's to be executed |
PlanKey |
getPlanKey()
Get the PlanKey identifier for this Plan |
Project |
getProject()
Returns the parent Project |
java.util.List<Labelling> |
getRelatedLabellings()
|
java.io.File |
getSourceCodeDirectory()
Returns a file representing the source directory from the Repository |
java.lang.String |
getType()
|
boolean |
hasTests()
Helper method checking if plan has tests defined |
boolean |
isActive()
Checks if the plan has an active build(s). |
boolean |
isBusy()
Is the Plan busy |
boolean |
isExecuting()
Is the build currenlty being executed? |
boolean |
isSuspendedFromBuilding()
Checks if the build has been |
void |
setBuildDefinitionXml(BuildDefinitionForBuild buildDefinitionXml)
|
void |
setBuildKey(java.lang.String buildKey)
Define the build's unique key (uppercase alphanumeric) |
void |
setBuildName(java.lang.String buildName)
|
void |
setFirstBuildNumber(int firstBuildNumber)
|
void |
setKey(java.lang.String fullKey)
|
void |
setLabellings(java.util.List<Labelling> labellings)
|
void |
setLastBuildNumber(int lastBuildNumber)
|
void |
setLastVcsRevisionKey(java.lang.String lastVcsRevisionKey)
|
void |
setNextBuildNumber(int nextBuildNumber)
|
void |
setProject(Project project)
|
void |
setSuspendedFromBuilding(boolean suspendFromBuilding)
Sets the build to suspend temporarily |
ErrorCollection |
validateBuild()
Validates the build's builder and source code locations |
Methods inherited from interface com.atlassian.bamboo.Describable |
---|
setDescription, setName |
Methods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider |
---|
getDescription |
Methods inherited from interface com.atlassian.bamboo.deletion.Deletable |
---|
isMarkedForDeletion, setMarkedForDeletion |
Methods inherited from interface com.atlassian.bamboo.core.BambooObject |
---|
getId, setId |
Field Detail |
---|
static final int MAX_NUMBER_LOG_ENTRIES
static final int MAX_PREVIOUS_BUILD_FOR_AVE
static final java.lang.String STATUS_FAIL
static final java.lang.String STATUS_SUCCESS
static final java.lang.String STATUS_CURRENTLY_BUILDING
static final java.lang.String STATUS_NO_BUILDS
static final java.lang.String STATUS_NOT_RUN
Method Detail |
---|
@NotNull PlanKey getPlanKey()
PlanKey
identifier for this Plan
java.lang.String getKey()
void setKey(java.lang.String fullKey)
java.lang.String getBuildKey()
void setBuildKey(java.lang.String buildKey)
buildKey
- The value of the key@NotNull java.lang.String getName()
getName
in interface DescriptionProvider
getName
in interface NameProvider
java.lang.String getBuildName()
void setBuildName(java.lang.String buildName)
ErrorCollection validateBuild()
ErrorCollection
with relevent error messagesjava.lang.String getCurrentStatus()
java.io.File getSourceCodeDirectory() throws RepositoryException
Repository
RepositoryException
boolean isExecuting()
void setSuspendedFromBuilding(boolean suspendFromBuilding)
suspendFromBuilding
- boolean isSuspendedFromBuilding()
int getLastBuildNumber()
int getFirstBuildNumber()
boolean hasTests()
@NotNull BuildDefinition getBuildDefinition()
BuildDefinition
that backs this buildd
BuildDefinition
object.Project getProject()
Project
Project
. Never nullvoid setProject(Project project)
int getNextBuildNumber()
void setNextBuildNumber(int nextBuildNumber)
void setLastBuildNumber(int lastBuildNumber)
void setFirstBuildNumber(int firstBuildNumber)
BuildDefinitionForBuild getBuildDefinitionXml()
void setBuildDefinitionXml(BuildDefinitionForBuild buildDefinitionXml)
java.util.List<Labelling> getLabellings()
void setLabellings(java.util.List<Labelling> labellings)
java.util.List<Labelling> getRelatedLabellings()
BuildLogger getBuildLogger()
BuildLogger
. @NotNull@Nullable java.lang.String getLastVcsRevisionKey()
void setLastVcsRevisionKey(java.lang.String lastVcsRevisionKey)
boolean isActive()
long getAverageBuildDuration()
@NotNull java.lang.String getType()
@Nullable ResultsSummary getLatestResultsSummary()
boolean isBusy()
Plan
busy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |