Package com.atlassian.bamboo.v2.build
Interface BuildIdentifier
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
BuildContext
- All Known Implementing Classes:
BuildContextImpl
,BuildIdentifierImpl
,DeploymentRepositoryBuildContext
-
Method Summary
Modifier and TypeMethodDescriptionint
The build number being built@NotNull String
Deprecated.@Nullable BuildIdentifier
long
Deprecated.since 6.9 usegetPlanDbId()
@NotNull String
Deprecated.since 5.11, usegetTypedPlanKey()
instead@NotNull String
The full name of thePlan
@NotNull PlanResultKey
Gets thePlanResultKey
for the currentBuildIdentifier
@NotNull String
@NotNull String
The short name of thePlan
@NotNull PlanKey
Full plan key (e.g.@NotNull UUID
getUuid()
Id of the run.
-
Method Details
-
getParentBuildIdentifier
- Returns:
- the
BuildContext
of the parentPlan
execution. Should return null if the currentBuildContext
is for aChain
-
getPlanId
Deprecated.since 6.9 usegetPlanDbId()
- Returns:
- Database id of the plan.
- Throws:
IllegalStateException
- if N/A
-
getPlanDbId
- Returns:
- Id of the plan or empty if N/A.
-
getMasterPlanId
- Returns:
- id of the master plan or empty if plan has no master.
-
getPlanKey
Deprecated.since 5.11, usegetTypedPlanKey()
insteadFull plan key (e.g. BAM-MAIN)- Returns:
- Key for the plan BAM-MAIN
-
getTypedPlanKey
Full plan key (e.g. BAM-MAIN)- Returns:
- Key for the plan BAM-MAIN
-
getPlanName
The full name of thePlan
- Returns:
DescriptionProvider.getName()
-
getShortName
The short name of thePlan
- Returns:
PlanIdentifier.getBuildName()
-
getBuildNumber
int getBuildNumber()The build number being built- Returns:
- int
-
getBuildResultKey
Deprecated.since 6.0 usegetPlanResultKey()
insteadFull build result key (e.g. BAM-MAIN-100)- Returns:
- Key for build result
-
getPlanResultKey
Gets thePlanResultKey
for the currentBuildIdentifier
- Returns:
- planResultKey
-
getProjectName
-
getUuid
Id of the run. Allows to tell apart instances of build if a job is restarted.- Since:
- 9.0 get unique id of the specific run
-
getPlanResultKey()
instead