Package com.atlassian.bamboo.chains
Interface BuildExecution
-
- All Superinterfaces:
ExecutionStatus
@PublicApi public interface BuildExecution extends ExecutionStatus
Represents a runningJobexecuting within aChainStage
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull BuildContextgetBuildContext()TheBuildContextof build process represented by this object.@NotNull BuildStategetBuildState()Returns the BuildState (success or failure)<T> TgetConfigObject(String key, Class<T> aClass)Get configuration object produced byPlanConfigurationUiPlugin@NotNull PlanResultKeygetPlanResultKey()@NotNull StageExecutiongetStageExecution()Returns theStageExecutionthat theBuildExecutionis a component ofbooleanisBuilding()Returns true if the build is currently executingbooleanisCompleted()Returns true if the build has completedbooleanisSuccessful()If the Build is successful or not-
Methods inherited from interface com.atlassian.bamboo.plan.ExecutionStatus
getAverageDuration, getBuildChanges, getBuildIdentifier, getElapsedTime, getProgressBar, getQueueTime, getStartTime, getTriggerReason
-
-
-
-
Method Detail
-
getPlanResultKey
@NotNull @NotNull PlanResultKey getPlanResultKey()
- Returns:
- resultKey for
JobandBuildResultsSummary
-
isBuilding
boolean isBuilding()
Returns true if the build is currently executing- Returns:
- building
-
isCompleted
boolean isCompleted()
Returns true if the build has completed- Returns:
- completed
-
isSuccessful
boolean isSuccessful()
If the Build is successful or not- Returns:
- successful
-
getBuildState
@NotNull @NotNull BuildState getBuildState()
Returns the BuildState (success or failure)- Returns:
- buildState
-
getStageExecution
@NotNull @NotNull StageExecution getStageExecution()
Returns theStageExecutionthat theBuildExecutionis a component of- Returns:
- stageExection
-
getBuildContext
@NotNull @NotNull BuildContext getBuildContext()
TheBuildContextof build process represented by this object.- Returns:
- buildContext
-
getConfigObject
@Nullable <T> T getConfigObject(String key, Class<T> aClass)
Get configuration object produced byPlanConfigurationUiPlugin- Parameters:
key-aClass-- Returns:
- configObject
- Since:
- 3.0
-
-