com.atlassian.bamboo.v2.build
Interface BuildIdentifier

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
BuildContext
All Known Implementing Classes:
BuildContextImpl, BuildIdentifierImpl

public interface BuildIdentifier
extends java.io.Serializable


Method Summary
 int getBuildNumber()
          The build number being built
 java.lang.String getBuildResultKey()
          Full build result key (e.g.
 BuildIdentifier getParentBuildIdentifier()
           
 long getPlanId()
           
 java.lang.String getPlanKey()
          Full plan key (e.g.
 java.lang.String getPlanName()
          The full name of the Plan
 PlanResultKey getPlanResultKey()
          Gets the PlanResultKey for the current BuildIdentifier
 java.lang.String getProjectName()
           
 java.lang.String getShortName()
          The short name of the Plan
 

Method Detail

getParentBuildIdentifier

@Nullable
BuildIdentifier getParentBuildIdentifier()
Returns:
the BuildContext of the parent Plan execution. Should return null if the current BuildContext is for a TopLevelPlan

getPlanId

long getPlanId()
Returns:
Id of the plan.

getPlanKey

@NotNull
java.lang.String getPlanKey()
Full plan key (e.g. BAM-MAIN)

Returns:
Key for the plan BAM-MAIN @NotNull

getPlanName

@NotNull
java.lang.String getPlanName()
The full name of the Plan

Returns:
Plan.getName()

getShortName

@NotNull
java.lang.String getShortName()
The short name of the Plan

Returns:
Plan.getBuildName()

getBuildNumber

int getBuildNumber()
The build number being built

Returns:
int

getBuildResultKey

@NotNull
java.lang.String getBuildResultKey()
Full build result key (e.g. BAM-MAIN-100)

Returns:
Key for build result @NotNull

getPlanResultKey

@NotNull
PlanResultKey getPlanResultKey()
Gets the PlanResultKey for the current BuildIdentifier

Returns:
planResultKey

getProjectName

@NotNull
java.lang.String getProjectName()


Copyright © 2011 Atlassian. All Rights Reserved.