Package com.atlassian.bamboo.build
Class BuildNumberServiceImpl
java.lang.Object
com.atlassian.bamboo.build.BuildNumberServiceImpl
- All Implemented Interfaces:
BuildNumberService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getNextBuildNumber
(@NotNull PlanIdentifier planIdentifier) Returns next build number for a plan with the given key without bumping it.boolean
setBuildNumber
(@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:BuildNumberService
Sets new build number for a plan with the given key.newBuildNumber
must be greater than the current one.- Specified by:
setBuildNumber
in 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:BuildNumberService
Returns next build number for a plan with the given key without bumping it.- Specified by:
getNextBuildNumber
in interfaceBuildNumberService
- Returns:
-