Package com.atlassian.bamboo.v2.build
Class BuildIdentifierImpl
java.lang.Object
com.atlassian.bamboo.v2.build.BuildIdentifierImpl
- All Implemented Interfaces:
BuildIdentifier
,Serializable
- Direct Known Subclasses:
BuildContextImpl
- See Also:
-
Constructor Summary
ConstructorDescriptionBuildIdentifierImpl
(long planId, String planKey, String projectName, String planName, String shortName, int buildNumber) Deprecated.BuildIdentifierImpl
(@NotNull BuildIdentifier buildIdentifier) BuildIdentifierImpl
(@Nullable Long planId, @Nullable Long masterPlanId, String planKey, String projectName, String planName, String shortName, int buildNumber) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
The build number being built@NotNull String
Full build result key (e.g.long
@NotNull String
Full plan key (e.g.@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.int
hashCode()
-
Constructor Details
-
BuildIdentifierImpl
-
BuildIdentifierImpl
@Deprecated public BuildIdentifierImpl(long planId, String planKey, String projectName, String planName, String shortName, int buildNumber) Deprecated. -
BuildIdentifierImpl
public BuildIdentifierImpl(@Nullable @Nullable Long planId, @Nullable @Nullable Long masterPlanId, String planKey, String projectName, String planName, String shortName, int buildNumber) - Parameters:
planId
- db id of the plan or null if N/AmasterPlanId
- db id of the master plan or null if this build is not a branch buildplanKey
- plan keyprojectName
- name of the projectplanName
- full name of the planshortName
- short name of the plan (without project part)buildNumber
- build number
-
-
Method Details
-
getParentBuildIdentifier
- Specified by:
getParentBuildIdentifier
in interfaceBuildIdentifier
- Returns:
- the
BuildContext
of the parentPlan
execution. Should return null if the currentBuildContext
is for aChain
-
getPlanId
public long getPlanId()- Specified by:
getPlanId
in interfaceBuildIdentifier
- Returns:
- Database id of the plan.
-
getPlanDbId
- Specified by:
getPlanDbId
in interfaceBuildIdentifier
- Returns:
- Id of the plan or empty if N/A.
-
getMasterPlanId
- Specified by:
getMasterPlanId
in interfaceBuildIdentifier
- Returns:
- id of the master plan or empty if plan has no master.
-
getPlanKey
Description copied from interface:BuildIdentifier
Full plan key (e.g. BAM-MAIN)- Specified by:
getPlanKey
in interfaceBuildIdentifier
- Returns:
- Key for the plan BAM-MAIN
-
getTypedPlanKey
Description copied from interface:BuildIdentifier
Full plan key (e.g. BAM-MAIN)- Specified by:
getTypedPlanKey
in interfaceBuildIdentifier
- Returns:
- Key for the plan BAM-MAIN
-
getPlanName
Description copied from interface:BuildIdentifier
The full name of thePlan
- Specified by:
getPlanName
in interfaceBuildIdentifier
- Returns:
DescriptionProvider.getName()
-
getShortName
Description copied from interface:BuildIdentifier
The short name of thePlan
- Specified by:
getShortName
in interfaceBuildIdentifier
- Returns:
PlanIdentifier.getBuildName()
-
getBuildNumber
public int getBuildNumber()Description copied from interface:BuildIdentifier
The build number being built- Specified by:
getBuildNumber
in interfaceBuildIdentifier
- Returns:
- int
-
getBuildResultKey
Description copied from interface:BuildIdentifier
Full build result key (e.g. BAM-MAIN-100)- Specified by:
getBuildResultKey
in interfaceBuildIdentifier
- Returns:
- Key for build result
-
getPlanResultKey
Description copied from interface:BuildIdentifier
Gets thePlanResultKey
for the currentBuildIdentifier
- Specified by:
getPlanResultKey
in interfaceBuildIdentifier
- Returns:
- planResultKey
-
getProjectName
- Specified by:
getProjectName
in interfaceBuildIdentifier
-
hashCode
public int hashCode() -
getUuid
Description copied from interface:BuildIdentifier
Id of the run. Allows to tell apart instances of build if a job is restarted.- Specified by:
getUuid
in interfaceBuildIdentifier
-
equals
-
BuildIdentifierImpl(Long, Long, String, String, String, String, int)