@Immutable public class BuildIdentifierImpl extends Object implements BuildIdentifier
Constructor and Description |
---|
BuildIdentifierImpl(BuildIdentifier buildIdentifier) |
BuildIdentifierImpl(Long planId,
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
|
String |
getBuildResultKey()
Full build result key (e.g.
|
Optional<Long> |
getMasterPlanId() |
BuildIdentifier |
getParentBuildIdentifier() |
Optional<Long> |
getPlanDbId() |
long |
getPlanId() |
String |
getPlanKey()
Full plan key (e.g.
|
String |
getPlanName()
The full name of the
Plan |
PlanResultKey |
getPlanResultKey()
Gets the
PlanResultKey for the current BuildIdentifier |
String |
getProjectName() |
String |
getShortName()
The short name of the
Plan |
PlanKey |
getTypedPlanKey()
Full plan key (e.g.
|
int |
hashCode() |
public BuildIdentifierImpl(@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 Long planId, @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 String getPlanKey()
BuildIdentifier
getPlanKey
in interface BuildIdentifier
@NotNull public PlanKey getTypedPlanKey()
BuildIdentifier
getTypedPlanKey
in interface BuildIdentifier
@NotNull public String getPlanName()
BuildIdentifier
Plan
getPlanName
in interface BuildIdentifier
DescriptionProvider.getName()
@NotNull public String getShortName()
BuildIdentifier
Plan
getShortName
in interface BuildIdentifier
PlanIdentifier.getBuildName()
public int getBuildNumber()
BuildIdentifier
getBuildNumber
in interface BuildIdentifier
@NotNull public String getBuildResultKey()
BuildIdentifier
getBuildResultKey
in interface BuildIdentifier
@NotNull public PlanResultKey getPlanResultKey()
BuildIdentifier
PlanResultKey
for the current BuildIdentifier
getPlanResultKey
in interface BuildIdentifier
@NotNull public String getProjectName()
getProjectName
in interface BuildIdentifier
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.