public class ReleaseNaming extends EntityPropertiesBuilder<ReleaseNamingProperties>
Constructor and Description |
---|
ReleaseNaming(String nextVersionName)
Specifies the name of the next release.
|
Modifier and Type | Method and Description |
---|---|
ReleaseNaming |
applicableToBranches(boolean applicableToBranches)
Specifies if this naming scheme should be applied to releases created from plan branches.
|
ReleaseNaming |
autoIncrement(boolean autoIncrement)
Specifies if Bamboo should automatically increment numeric part of release name.
|
protected ReleaseNamingProperties |
build() |
ReleaseNaming |
variablesToAutoIncrement(String... variablesToAutoIncrement)
Specifies which variables referenced in release name should be incremented after creating a release.
|
public ReleaseNaming(@NotNull String nextVersionName)
If automatic incrementation of release number is on, the system will prevent the incremented part of the name from being accidentally
reverted to a previous value when publishing the specs. See also: autoIncrement(boolean)
.
nextVersionName
- name of the next releasepublic ReleaseNaming autoIncrement(boolean autoIncrement)
Bamboo can automatically increment the last numeric component of the release name once the new release is created. For instance: if next release name is set to "release-1.2.3", Bamboo will set it to "release-1.2.4" after a release is created. If this option is on, Bamboo Specs engine prevents reverting the incremented part of the release name. Using the above example: setting next release name to "release-1.2.2" or "release-1.2.1" in Bamboo Specs has no effect, but setting it to "release-1.2.5" or "release-2.2.1" does.
autoIncrement
- true if Bamboo should increment release names automaticallypublic ReleaseNaming applicableToBranches(boolean applicableToBranches)
public ReleaseNaming variablesToAutoIncrement(@NotNull String... variablesToAutoIncrement)
applicableToBranches(boolean)
option is on, a release is created from a branch and the variable is overridden for that branch,
then the value associated with the branch is incremented.protected ReleaseNamingProperties build()
build
in class EntityPropertiesBuilder<ReleaseNamingProperties>
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.