Class BuildNumberServiceImpl

java.lang.Object
com.atlassian.bamboo.build.BuildNumberServiceImpl
All Implemented Interfaces:
BuildNumberService

public class BuildNumberServiceImpl extends Object implements BuildNumberService
  • Constructor Details

    • BuildNumberServiceImpl

      public BuildNumberServiceImpl()
  • Method Details

    • setBuildNumber

      public boolean setBuildNumber(@NotNull @NotNull PlanIdentifier planIdentifier, int newBuildNumber)
      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 interface BuildNumberService
      Parameters:
      planIdentifier - Identifier of a plan
      newBuildNumber - 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: BuildNumberService
      Returns next build number for a plan with the given key without bumping it.
      Specified by:
      getNextBuildNumber in interface BuildNumberService
      Returns: