Package com.atlassian.bamboo.build
Class BuildNumberServiceImpl
java.lang.Object
com.atlassian.bamboo.build.BuildNumberServiceImpl
- All Implemented Interfaces:
BuildNumberService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetNextBuildNumber(@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.
-
Constructor Details
-
BuildNumberServiceImpl
public BuildNumberServiceImpl()
-
-
Method Details
-
setBuildNumber
Description copied from interface:BuildNumberServiceSets new build number for a plan with the given key.newBuildNumbermust be greater than the current one.- Specified by:
setBuildNumberin interfaceBuildNumberService- 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
Description copied from interface:BuildNumberServiceReturns next build number for a plan with the given key without bumping it.- Specified by:
getNextBuildNumberin interfaceBuildNumberService- Returns:
-