Package com.atlassian.bamboo.build
Class BuildNumberServiceImpl
- java.lang.Object
-
- com.atlassian.bamboo.build.BuildNumberServiceImpl
-
- All Implemented Interfaces:
BuildNumberService
public class BuildNumberServiceImpl extends Object implements BuildNumberService
-
-
Constructor Summary
Constructors Constructor Description BuildNumberServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete 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
public boolean setBuildNumber(@NotNull @NotNull PlanIdentifier planIdentifier, int newBuildNumber)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
public int getNextBuildNumber(@NotNull @NotNull PlanIdentifier planIdentifier)Description copied from interface:BuildNumberServiceReturns next build number for a plan with the given key without bumping it.- Specified by:
getNextBuildNumberin interfaceBuildNumberService- Returns:
-
-