jetbrains.buildServer.serverSide
Interface BuildNumbers


public interface BuildNumbers

Information about build numbers attached to build configuration.


Field Summary
static java.lang.String DEFAULT_BUILD_NUMBER_PATTERN
           
 
Method Summary
 long getBuildCounter()
           
 java.lang.String getBuildNumber()
          Deprecated. since 8.0
 long getCounterAndIncrement()
          Returns current couner value and increments it.
 java.lang.String increaseBuildNumber()
          Deprecated. since 8.0
 void persist()
          Deprecated. since 5.0 (use SBuildType.persist() if you want to persist build number pattern)
 void setBuildNumberCounter(long nextBuild)
          Set build number counter.
 

Field Detail

DEFAULT_BUILD_NUMBER_PATTERN

static final java.lang.String DEFAULT_BUILD_NUMBER_PATTERN
See Also:
Constant Field Values
Method Detail

getBuildNumber

java.lang.String getBuildNumber()
Deprecated. since 8.0

Get the build number of the latest started build for the corresponding build configuration

Returns:
see above

increaseBuildNumber

java.lang.String increaseBuildNumber()
Deprecated. since 8.0

Increases build number.

Returns:
previous build number

getCounterAndIncrement

long getCounterAndIncrement()
Returns current couner value and increments it.

Returns:
current counter value
Since:
8.0

setBuildNumberCounter

void setBuildNumberCounter(long nextBuild)
Set build number counter. This counter will be exposed as %build.counter% parameter.

Parameters:
nextBuild - build counter for the next build

getBuildCounter

long getBuildCounter()
Returns:
current build number counter

persist

void persist()
Deprecated. since 5.0 (use SBuildType.persist() if you want to persist build number pattern)

Stores build numbers on disk.