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
ConstructorsConstructorDescriptionBuildIdentifierImpl(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 TypeMethodDescriptionbooleanintThe build number being built@NotNull StringFull build result key (e.g.long@NotNull StringFull plan key (e.g.@NotNull StringThe full name of thePlan@NotNull PlanResultKeyGets thePlanResultKeyfor the currentBuildIdentifier@NotNull String@NotNull StringThe short name of thePlan@NotNull PlanKeyFull plan key (e.g.@NotNull UUIDgetUuid()Id of the run.inthashCode()
-
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:
getParentBuildIdentifierin interfaceBuildIdentifier- Returns:
- the
BuildContextof the parentPlanexecution. Should return null if the currentBuildContextis for aChain
-
getPlanId
public long getPlanId()- Specified by:
getPlanIdin interfaceBuildIdentifier- Returns:
- Database id of the plan.
-
getPlanDbId
- Specified by:
getPlanDbIdin interfaceBuildIdentifier- Returns:
- Id of the plan or empty if N/A.
-
getMasterPlanId
- Specified by:
getMasterPlanIdin interfaceBuildIdentifier- Returns:
- id of the master plan or empty if plan has no master.
-
getPlanKey
Description copied from interface:BuildIdentifierFull plan key (e.g. BAM-MAIN)- Specified by:
getPlanKeyin interfaceBuildIdentifier- Returns:
- Key for the plan BAM-MAIN
-
getTypedPlanKey
Description copied from interface:BuildIdentifierFull plan key (e.g. BAM-MAIN)- Specified by:
getTypedPlanKeyin interfaceBuildIdentifier- Returns:
- Key for the plan BAM-MAIN
-
getPlanName
Description copied from interface:BuildIdentifierThe full name of thePlan- Specified by:
getPlanNamein interfaceBuildIdentifier- Returns:
DescriptionProvider.getName()
-
getShortName
Description copied from interface:BuildIdentifierThe short name of thePlan- Specified by:
getShortNamein interfaceBuildIdentifier- Returns:
PlanIdentifier.getBuildName()
-
getBuildNumber
public int getBuildNumber()Description copied from interface:BuildIdentifierThe build number being built- Specified by:
getBuildNumberin interfaceBuildIdentifier- Returns:
- int
-
getBuildResultKey
Description copied from interface:BuildIdentifierFull build result key (e.g. BAM-MAIN-100)- Specified by:
getBuildResultKeyin interfaceBuildIdentifier- Returns:
- Key for build result
-
getPlanResultKey
Description copied from interface:BuildIdentifierGets thePlanResultKeyfor the currentBuildIdentifier- Specified by:
getPlanResultKeyin interfaceBuildIdentifier- Returns:
- planResultKey
-
getProjectName
- Specified by:
getProjectNamein interfaceBuildIdentifier
-
hashCode
public int hashCode() -
getUuid
Description copied from interface:BuildIdentifierId of the run. Allows to tell apart instances of build if a job is restarted.- Specified by:
getUuidin interfaceBuildIdentifier
-
equals
-
BuildIdentifierImpl(Long, Long, String, String, String, String, int)