Package com.atlassian.bamboo.v2.build
Interface BuildIdentifier
-
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
BuildContext
- All Known Implementing Classes:
BuildContextImpl,BuildIdentifierImpl,DeploymentRepositoryBuildContext
public interface BuildIdentifier extends Serializable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description intgetBuildNumber()The build number being built@NotNull StringgetBuildResultKey()Deprecated.since 6.0 usegetPlanResultKey()insteadOptional<Long>getMasterPlanId()@Nullable BuildIdentifiergetParentBuildIdentifier()Optional<Long>getPlanDbId()longgetPlanId()Deprecated.since 6.9 usegetPlanDbId()@NotNull StringgetPlanKey()Deprecated.since 5.11, usegetTypedPlanKey()instead@NotNull StringgetPlanName()The full name of thePlan@NotNull PlanResultKeygetPlanResultKey()Gets thePlanResultKeyfor the currentBuildIdentifier@NotNull StringgetProjectName()@NotNull StringgetShortName()The short name of thePlan@NotNull PlanKeygetTypedPlanKey()Full plan key (e.g.@NotNull UUIDgetUuid()Id of the run.
-
-
-
Method Detail
-
getParentBuildIdentifier
@Nullable @Nullable BuildIdentifier getParentBuildIdentifier()
- Returns:
- the
BuildContextof the parentPlanexecution. Should return null if the currentBuildContextis for aChain
-
getPlanId
@Deprecated long getPlanId()
Deprecated.since 6.9 usegetPlanDbId()- Returns:
- Database id of the plan.
- Throws:
IllegalStateException- if N/A
-
getMasterPlanId
Optional<Long> getMasterPlanId()
- Returns:
- id of the master plan or empty if plan has no master.
-
getPlanKey
@NotNull @Deprecated @NotNull String getPlanKey()
Deprecated.since 5.11, usegetTypedPlanKey()insteadFull plan key (e.g. BAM-MAIN)- Returns:
- Key for the plan BAM-MAIN
-
getTypedPlanKey
@NotNull @NotNull PlanKey getTypedPlanKey()
Full plan key (e.g. BAM-MAIN)- Returns:
- Key for the plan BAM-MAIN
-
getPlanName
@NotNull @NotNull String getPlanName()
The full name of thePlan- Returns:
DescriptionProvider.getName()
-
getShortName
@NotNull @NotNull String getShortName()
The short name of thePlan- Returns:
PlanIdentifier.getBuildName()
-
getBuildNumber
int getBuildNumber()
The build number being built- Returns:
- int
-
getBuildResultKey
@NotNull @Deprecated @NotNull String getBuildResultKey()
Deprecated.since 6.0 usegetPlanResultKey()insteadFull build result key (e.g. BAM-MAIN-100)- Returns:
- Key for build result
-
getPlanResultKey
@NotNull @NotNull PlanResultKey getPlanResultKey()
Gets thePlanResultKeyfor the currentBuildIdentifier- Returns:
- planResultKey
-
getProjectName
@NotNull @NotNull String getProjectName()
-
getUuid
@NotNull @NotNull UUID 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
-
-