| Modifier and Type | Method and Description |
|---|---|
PlanResultKey |
Artifact.getPlanResultKey()
Get key of
ResultsSummary that owns this Artifact. |
| Modifier and Type | Method and Description |
|---|---|
List<MutableArtifact> |
ArtifactDao.findPlanResultArtifactsReferencedByVersion(PlanResultKey planResultKey)
Find all artifacts that belong to a build result are part of a deployment version.
|
void |
ArtifactDao.removeByPlanResultKey(PlanResultKey planResultKey)
Remove all artifacts that belong to a build result and are not part of a deployment version.
|
void |
MutableArtifact.setPlanResultKey(PlanResultKey planResultKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
StopBuildManager.cancelBuild(PlanResultKey planResultKey,
boolean abandonResult)
Cancel a running build optionally abandoning the result
|
void |
BuildExecutionManager.finishBuild(PlanResultKey planResultKey)
Calls removeCurrentlyBuilding & finishProcess
|
void |
BuildExecutionManager.finishBuildWithCleanState(PlanResultKey planResultKey,
BuildContext buildContext)
Calls removeCurrentlyBuilding & finishProcess.
|
void |
BuildLoggerManager.removeBuildLogger(PlanResultKey buildResultKey)
Removes buildLogger for finished build process.
|
| Modifier and Type | Method and Description |
|---|---|
ArtifactPublishingResult |
ArtifactManager.publish(BuildLogger buildLogger,
PlanResultKey planResultKey,
File baseDirectory,
ArtifactDefinitionContext artifact,
Map<String,String> artifactHandlerConfiguration,
int minExpectedFilesCnt)
Request copy of artifacts from a designated location to artifact storage.
|
boolean |
ArtifactManager.publish(BuildLogger buildLogger,
PlanResultKey planResultKey,
File baseDirectory,
ArtifactDefinitionContext artifact,
Map<String,String> artifactHandlerConfiguration,
Set<String> successfulPublishers,
int minExpectedFilesCnt)
|
ArtifactHandlerPublishingResult |
ArtifactHandler.publish(PlanResultKey planResultKey,
ArtifactDefinitionContext artifact,
ArtifactPublishingConfig artifactPublishingConfig) |
void |
ArtifactManager.removeArtifactFromStorage(PlanResultKey planResultKey,
ImmutableArtifactDefinitionBase artifact)
Deprecated.
since 5.5 use
ArtifactManager.removeArtifactFromStorage(Artifact) |
void |
ArtifactHandler.removeArtifactFromStorage(PlanResultKey planResultKey,
ImmutableArtifactDefinitionBase artifact,
ArtifactHandlerConfigProvider artifactHandlerConfigProvider)
Removes artifact files for a single artifact.
|
void |
ArtifactManager.removeArtifactsFromStorage(PlanResultKey planResultKey)
Deprecated.
since 5.7
|
void |
ArtifactHandler.removeArtifactsFromStorage(PlanResultKey planResultKey,
ArtifactHandlerConfigProvider artifactHandlerConfigProvider)
Removes artifact files for a single plan result.
|
boolean |
ArtifactManager.retrieve(BuildLogger buildLogger,
PlanResultKey planResultKey,
ArtifactSubscriptionContext artifactSubscription,
Map<String,String> artifactHandlerConfiguration,
File buildWorkingDirectory)
Retrieves a plan artifact from artifact storage.
|
boolean |
ArtifactManager.retrieve(BuildLogger buildLogger,
PlanResultKey planResultKey,
ResultKey clientKey,
ArtifactDefinitionContext artifactDefinitionContext,
String destinationPath,
Map<String,String> artifactHandlersConfiguration,
File buildWorkingDirectory,
Map<String,Artifact> versionArtifacts)
Retrieves an artifact from artifact storage.
|
ArtifactRetrievalStatus |
ArtifactHandler.retrieve(PlanResultKey planResultKey,
ResultKey clientKey,
ArtifactSubscriptionContext artifactSubscription,
ArtifactRetrievalConfig artifactRetrievalConfig)
Retrieve plan artifact.
|
| Modifier and Type | Method and Description |
|---|---|
PlanResultKey |
ChainExecution.getPlanResultKey()
Get the result key
|
PlanResultKey |
BuildExecution.getPlanResultKey() |
PlanResultKey |
ChainState.getPlanResultKey()
PlanResultKey for the the Chain execution |
| Modifier and Type | Method and Description |
|---|---|
Set<PlanResultKey> |
ChainExecutionManager.restoreState(Set<PlanResultKey> chainResultsToRestore)
Restores state of running chains after server restart.
|
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.bamboo.chains.ChainBuildState |
StageState.get(PlanResultKey planResultKey)
Gets the Build State given the build result key
|
Long |
ChainStateResult.getAverageDuration(PlanResultKey planResultKey)
|
BuildContext |
ChainStateResult.getBuildContext(PlanResultKey planResultKey)
Lookup a
BuildContext of a Job by its PlanResultKey |
com.atlassian.bamboo.chains.ChainBuildState |
ChainState.getChainBuildState(PlanResultKey planResultKey)
Gets the build state for the given buildResultKey
|
ChainExecution |
ChainExecutionManager.getChainExecution(PlanResultKey planResultKey)
Get the state of the single ChainExecution
|
BuildExecution |
ChainExecutionManager.getJobExecution(PlanResultKey planResultKey)
Get the state of a single Job being executed
|
boolean |
ChainExecutionManager.isExecuting(PlanResultKey planResultKey)
Checks of
BuildResultsSummary represented by PlanResultKey is currently building (ie started on an agent_ |
boolean |
JobExecutionManager.requestStop(PlanResultKey planResultKey)
Stops the build represented by its
PlanResultKey and does not abandon the result
If the ImmutableResultsSummary.getLifeCycleState() is not LifeCycleState.QUEUED or LifeCycleState.IN_PROGRESS
the result will be transitioned to LifeCycleState.NOT_BUILT and BuildState.UNKNOWN |
void |
ChainExecutionManager.stop(PlanResultKey planResultKey)
Stops the executing instance of the
Chain represented by PlanResultKey |
void |
ChainResultManager.updateStateToInProgress(PlanResultKey chainResultKey,
Date startDate) |
| Modifier and Type | Method and Description |
|---|---|
Set<PlanResultKey> |
ChainExecutionManager.restoreState(Set<PlanResultKey> chainResultsToRestore)
Restores state of running chains after server restart.
|
| Modifier and Type | Method and Description |
|---|---|
int |
LabelManager.addLabel(String labelName,
PlanResultKey planResultKey,
com.atlassian.user.User user)
Add a label against a build result.
|
int |
LabelManager.removeLabel(String labelName,
PlanResultKey planResultKey,
com.atlassian.user.User user)
Removes a label against a build result.
|
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.base.Function<? super PlanResultKey,? extends PlanResultKey> |
PlanKeys.chainResultKeyFromJobResultKey |
static com.google.common.base.Function<? super PlanResultKey,? extends PlanResultKey> |
PlanKeys.chainResultKeyFromJobResultKey |
static com.google.common.base.Function<PlanResultKeyProvider,PlanResultKey> |
PlanResultKeyProvider.getPlanKey |
static com.google.common.base.Function<? super PlanResultKey,? extends PlanResultKey> |
PlanKeys.REMOVE_DELETION_MARKER |
static com.google.common.base.Function<? super PlanResultKey,? extends PlanResultKey> |
PlanKeys.REMOVE_DELETION_MARKER |
| Modifier and Type | Method and Description |
|---|---|
static PlanResultKey |
PlanKeys.getChainResultKey(PlanResultKey planResultKey)
Creates a chain result key from job result key.
|
PlanResultKey |
PlanResultKeyProvider.getPlanResultKey() |
PlanResultKey |
ExecutionRequestResult.getPlanResultKey()
The
PlanResultKey of the executing Plan |
static PlanResultKey |
PlanKeys.getPlanResultKey(PlanKey planKey,
int buildNumber)
Creates a
PlanResultKey from the given PlanKey and buildNumber |
static PlanResultKey |
PlanKeys.getPlanResultKey(String planResultKey)
Creates a
PlanResultKey from its string form 'BAM-BOO-123' |
static PlanResultKey |
PlanKeys.getPlanResultKey(String planKey,
int buildNumber)
Creates a
PlanResultKey from the given planKey and buildNumber |
PlanResultKey |
PlanExecutionConfig.getResultToRerun()
PlanResultKey of build to start again |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.base.Function<PlanResultKey,PlanKey> |
PlanKeys.planKeyFromPlanResultKey() |
static com.google.common.base.Function<PlanResultKey,String> |
PlanKeys.planKeyStringFromPlanResultKey() |
static com.google.common.base.Function<String,PlanResultKey> |
PlanKeys.planResultKeyFromString() |
| Modifier and Type | Method and Description |
|---|---|
static PlanResultKey |
PlanKeys.getChainResultKey(PlanResultKey planResultKey)
Creates a chain result key from job result key.
|
List<CurrentlyBuilding> |
PlanExecutionManager.getCurrentlyBuildingForPlanResult(PlanResultKey planKey)
Returns all
CurrentlyBuilding for specified PlanResultKey In case plan is a Chain
instance, all currently running jobs will be returned, however, chain itself will be not included in the list
(effectively CurrentlyBuilding for all chain's children jobs will be returned) |
ExecutionStatus |
ExecutionStatusProvider.getExecutionStatus(PlanResultKey planResultKey)
Returns a
ExecutionStatus for the given PlanResultKey |
BuildExecution |
ExecutionStatusProvider.getJobExecution(PlanResultKey planResultKey)
Get the state of a single Job being executed
|
static String |
PlanKeys.getPlanKeyPart(PlanResultKey planResultKey)
Returns plan key part for given
PlanResultKey |
static String |
PlanKeys.getProjectKeyPart(PlanResultKey planResultKey)
Returns project key part for given
PlanResultKey |
boolean |
AbstractPlanExecutionPermitter.isPermittedToExecute(ImmutableChain chain,
PlanResultKey resultKey,
ErrorCollection errorCollection) |
boolean |
PlanExecutionPermitter.isPermittedToExecute(ImmutableChain chain,
PlanResultKey resultKey,
ErrorCollection errorCollection)
Checks a condition in order to determine if the plan can be executed.
|
protected abstract boolean |
AbstractPlanExecutionPermitter.isPermittedToExecuteImpl(ImmutableChain chain,
PlanResultKey resultKey,
ErrorCollection errorCollection) |
boolean |
ExecutableAgentsHelper.planHasExecutableAgents(PlanResultKey planResultKey)
Checks if a Buildable can be built on any active agent.
|
void |
PlanExecutionManager.stopPlan(PlanResultKey planResultKey,
boolean abandonResult,
String userName) |
| Modifier and Type | Method and Description |
|---|---|
List<ArtifactDefinitionContext> |
ArtifactSubscriptionManager.prepareArtifactDefinitionContexts(ImmutableJob job,
PlanResultKey chainResultKey)
Helps prepare the artifact definitions
|
List<ArtifactSubscriptionContext> |
ArtifactSubscriptionManager.prepareSubscriptionContexts(ImmutableJob job,
PlanResultKey planResultKey) |
void |
ArtifactSubscriptionManager.saveConsumedSubscription(ArtifactSubscriptionContext artifactSubscription,
PlanResultKey planResultKey)
|
void |
ArtifactSubscriptionManager.saveConsumedSubscription(ArtifactSubscriptionContext artifactSubscription,
PlanResultKey planResultKey,
String artifactLinkType)
Store consumed subscription.
|
| Modifier and Type | Method and Description |
|---|---|
PlanResultKey |
ImmutableChain.getLastResultKey()
Get the latest result key including active (not finished) results
|
| Modifier and Type | Method and Description |
|---|---|
ChainResultDetails |
ImmutablePlanManager.getChainResultDetails(PlanResultKey planResultKey) |
| Modifier and Type | Method and Description |
|---|---|
PlanTriggerResult |
PlanTrigger.triggerPlan(TriggerReason triggerReason,
PlanResultKey planResultKey,
Map<String,String> params,
Map<String,String> customVariables,
PlanVcsRevisionDataSet lastVcsRevisionKeys) |
| Modifier and Type | Method and Description |
|---|---|
PlanResultKey |
ImmutableResultsSummary.getPlanResultKey()
Gets the
PlanResultKey for this ImmutableResultsSummary |
| Modifier and Type | Method and Description |
|---|---|
<T extends ResultsSummary> |
ResultsSummaryManager.findFirstResultAfter(PlanResultKey planResultKey,
Class<T> aClass)
Finds the first
ResultsSummary after a specified build which is either FINISHED or can be FINISHED, i.e. |
ResultsSummary |
ResultsSummaryManager.findFirstSuccessfulBuildResultAfter(PlanResultKey planResultKey)
Finds the last successful
ResultsSummary after buildNumber |
<T extends ResultsSummary> |
ResultsSummaryManager.findLastBuildResultBeforeWithTests(PlanResultKey planResultKey,
Class<T> aClass,
boolean includeOnceOffBuilds)
Finds the last successful or failing
BuildResultsSummary before buildNumber |
<T extends ResultsSummary> |
BuildResultsSummaryDao.findLastBuildResultBeforeWithTests(PlanResultKey planResultKey,
Class<T> aClass,
boolean includeOnceOffBuilds) |
<T extends ResultsSummary> |
ResultsSummaryManager.findLastResultBefore(PlanResultKey planResultKey,
Class<T> aClass)
Finds the last successful or failing
ResultsSummary before planResultKey.getBuildNumber |
<T extends ResultsSummary> |
ResultsSummaryManager.findLastResultBefore(PlanResultKey planResultKey,
Class<T> aClass,
boolean includeOnceOffBuilds)
Finds the last
ResultsSummary before planResultKey.getBuildNumber |
ResultsSummary |
ResultsSummaryManager.findLastSuccessfulBuildResultBefore(PlanResultKey planResultKey)
Finds the last successful
ResultsSummary before build |
ResultsSummary |
ResultsSummaryManager.getResultsSummary(PlanResultKey planResultKey)
Lookup the ResultsSummary by
PlanResultKey |
<T extends ResultsSummary> |
ResultsSummaryManager.getResultsSummary(PlanResultKey planResultKey,
Class<T> aClass)
Lookup
ResultsSummary by PlanResultKey and expected type |
<T extends ResultsSummary> |
BuildResultsSummaryDao.getResultsSummary(PlanResultKey planResultKey,
Class<T> aClass)
Lookup
ResultsSummary by PlanResultKey and expected type |
<T extends ResultsSummary> |
ResultsSummaryManager.getResultsSummary(PlanResultKey planResultKey,
Class<T> aClass,
ResultDataRead dataRead)
Lookup
ResultsSummary by PlanResultKey and expected type. |
<T extends ResultsSummary> |
BuildResultsSummaryDao.getResultsSummary(PlanResultKey planResultKey,
Class<T> aClass,
ResultDataRead dataRead)
Lookup
ResultsSummary by PlanResultKey and expected type, all lazy initialized collections can be eagerly read |
ResultsSummary |
ResultsSummaryManager.getResultsSummary(PlanResultKey planResultKey,
ResultDataRead dataRead)
Lookup the ResultsSummary by
PlanResultKey. |
Long |
BuildResultsSummaryDao.getResultsSummaryId(PlanResultKey planResultKey)
Return
ResultsSummary's database id. |
void |
ResultsSummaryManager.invalidateLogSize(PlanResultKey planResultKey)
Invalidates the log size of a
ResultsSummary with the given PlanResultKey. |
| Modifier and Type | Method and Description |
|---|---|
List<TestClassResult> |
TestsManager.getTestClassResults(PlanResultKey planResultKey)
Retrieves a list of all testClassResults for a BuildResultSummary
|
List<TestClassResult> |
TestResultsDao.getTestClassResults(PlanResultKey planResultKey)
Retrieves a list of all testClassResults for a BuildResultSummary
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,VariableDefinitionContext> |
ResultsSummaryVariableAccessor.calculateCurrentVariablesState(PlanResultKey chainResultKey)
Get state of variables at point when execution of the build stopped.
|
Map<String,VariableDefinitionContext> |
ResultsSummaryVariableAccessor.calculateInitialVariablesState(PlanResultKey chainResultKey)
Get state of variables as recorded at the start of the build.
|
VariableContextBaseline |
ResultsSummaryVariableAccessor.safeGetVariableContextBaseline(PlanResultKey chainResultKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
StorageCappingService.onArtifactUpdated(PlanResultKey cause,
long artifactSizeDiff)
Invalidate disk usage values, check soft/hard limit boundaries and send notifications.
|
| Modifier and Type | Method and Description |
|---|---|
PlanResultKey |
BuildIdentifier.getPlanResultKey()
Gets the
PlanResultKey for the current BuildIdentifier |
| Modifier and Type | Method and Description |
|---|---|
PlanResultKey |
BuildTimingPoint.getPlanResultKey() |
PlanResultKey |
AbstractBuildTimingPoint.getPlanResultKey() |
| Modifier and Type | Method and Description |
|---|---|
static BuildTimingPoints.AgentAssigned |
BuildTimingPoints.agentAssigned(PlanResultKey planResultKey,
Date date,
long agentId) |
static BuildTimingPoints.ExecutionCancelled |
BuildTimingPoints.executionCancelled(PlanResultKey planResultKey,
Date date,
boolean buildActuallyCancelled) |
static BuildTimingPoints.ExecutionFinished |
BuildTimingPoints.executionFinished(PlanResultKey planResultKey,
Date date) |
| Constructor and Description |
|---|
AbstractBuildTimingPoint(PlanResultKey planResultKey,
Date date) |
BuildTimingPoints.AgentAssigned(PlanResultKey planResultKey,
Date date,
long agentId) |
BuildTimingPoints.ExecutionCancelled(PlanResultKey planResultKey,
Date date,
boolean buildActuallyCancelled) |
BuildTimingPoints.ExecutionFinished(PlanResultKey planResultKey,
Date date) |
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.