public class BuildNumberServiceImpl extends Object implements BuildNumberService
Constructor and Description |
---|
BuildNumberServiceImpl() |
Modifier and Type | Method and Description |
---|---|
int |
getNextBuildNumber(PlanIdentifier planIdentifier)
Returns next build number for a plan with the given key without bumping it.
|
boolean |
setBuildNumber(PlanIdentifier planIdentifier,
int newBuildNumber)
Sets new build number for a plan with the given key.
|
public boolean setBuildNumber(@NotNull PlanIdentifier planIdentifier, int newBuildNumber)
BuildNumberService
newBuildNumber
must be greater than the current one.setBuildNumber
in interface BuildNumberService
planIdentifier
- Identifier of a plannewBuildNumber
- must be greater than actual build numberpublic int getNextBuildNumber(@NotNull PlanIdentifier planIdentifier)
BuildNumberService
getNextBuildNumber
in interface BuildNumberService
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.