@Immutable public class BuildIdentifierImpl extends Object implements BuildIdentifier
Constructor and Description |
---|
BuildIdentifierImpl(@NotNull BuildIdentifier buildIdentifier) |
BuildIdentifierImpl(@Nullable Long planId,
@Nullable Long masterPlanId,
String planKey,
String projectName,
String planName,
String shortName,
int buildNumber) |
BuildIdentifierImpl(long planId,
String planKey,
String projectName,
String planName,
String shortName,
int buildNumber)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getBuildNumber()
The build number being built
|
@NotNull String |
getBuildResultKey()
Full build result key (e.g.
|
Optional<Long> |
getMasterPlanId() |
BuildIdentifier |
getParentBuildIdentifier() |
Optional<Long> |
getPlanDbId() |
long |
getPlanId() |
@NotNull String |
getPlanKey()
Full plan key (e.g.
|
@NotNull String |
getPlanName()
The full name of the
Plan |
@NotNull PlanResultKey |
getPlanResultKey()
Gets the
PlanResultKey for the current BuildIdentifier |
@NotNull String |
getProjectName() |
@NotNull String |
getShortName()
The short name of the
Plan |
@NotNull PlanKey |
getTypedPlanKey()
Full plan key (e.g.
|
@NotNull UUID |
getUuid()
Id of the run.
|
int |
hashCode() |
public BuildIdentifierImpl(@NotNull @NotNull BuildIdentifier buildIdentifier)
@Deprecated public BuildIdentifierImpl(long planId, String planKey, String projectName, String planName, String shortName, int buildNumber)
BuildIdentifierImpl(Long, Long, String, String, String, String, int)
public BuildIdentifierImpl(@Nullable @Nullable Long planId, @Nullable @Nullable Long masterPlanId, String planKey, String projectName, String planName, String shortName, int buildNumber)
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 numberpublic BuildIdentifier getParentBuildIdentifier()
getParentBuildIdentifier
in interface BuildIdentifier
BuildContext
of the parent Plan
execution. Should return null if the current BuildContext
is for a Chain
public long getPlanId()
getPlanId
in interface BuildIdentifier
public Optional<Long> getPlanDbId()
getPlanDbId
in interface BuildIdentifier
public Optional<Long> getMasterPlanId()
getMasterPlanId
in interface BuildIdentifier
@NotNull public @NotNull String getPlanKey()
BuildIdentifier
getPlanKey
in interface BuildIdentifier
@NotNull public @NotNull PlanKey getTypedPlanKey()
BuildIdentifier
getTypedPlanKey
in interface BuildIdentifier
@NotNull public @NotNull String getPlanName()
BuildIdentifier
Plan
getPlanName
in interface BuildIdentifier
DescriptionProvider.getName()
@NotNull public @NotNull String getShortName()
BuildIdentifier
Plan
getShortName
in interface BuildIdentifier
PlanIdentifier.getBuildName()
public int getBuildNumber()
BuildIdentifier
getBuildNumber
in interface BuildIdentifier
@NotNull public @NotNull String getBuildResultKey()
BuildIdentifier
getBuildResultKey
in interface BuildIdentifier
@NotNull public @NotNull PlanResultKey getPlanResultKey()
BuildIdentifier
PlanResultKey
for the current BuildIdentifier
getPlanResultKey
in interface BuildIdentifier
@NotNull public @NotNull String getProjectName()
getProjectName
in interface BuildIdentifier
@NotNull public @NotNull UUID getUuid()
BuildIdentifier
getUuid
in interface BuildIdentifier
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.