Package com.atlassian.bamboo.build
Interface BuildNumberService
-
- All Known Implementing Classes:
BuildNumberServiceImpl
public interface BuildNumberService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetNextBuildNumber(@NotNull PlanIdentifier planIdentifier)Returns next build number for a plan with the given key without bumping it.booleansetBuildNumber(@NotNull PlanIdentifier planIdentifier, int newBuildNumber)Sets new build number for a plan with the given key.
-
-
-
Method Detail
-
setBuildNumber
boolean setBuildNumber(@NotNull @NotNull PlanIdentifier planIdentifier, int newBuildNumber)Sets new build number for a plan with the given key.newBuildNumbermust be greater than the current one.- Parameters:
planIdentifier- Identifier of a plannewBuildNumber- must be greater than actual build number- Returns:
- true if newBuildNumber is greater than the old one. Otherwise false.
-
getNextBuildNumber
int getNextBuildNumber(@NotNull @NotNull PlanIdentifier planIdentifier)Returns next build number for a plan with the given key without bumping it.- Parameters:
planIdentifier-- Returns:
-
-