As a project I want to preserve the current development version (X-SNAPSHOT or X.Y-SNAPSHOT)
and automatically set the MINOR or MICRO version only to the environment variable BUILD_NUMBER.
So
Given my development version is 1-SNAPSHOT and the BUILD_NUMBER is 5
When I call release:prepare using BuildNumberVersionPolicy
Then my release version is 1.5 and my development version is still 1-SNAPSHOT.
Given my development version is 1-SNAPSHOT and the TRAVIS_BUILD_NUMBER is 5
When I call release:prepare using BuildNumberVersionPolicy and the pom property buildnumber-version-policy-identifier is set to TRAVIS_BUILD_NUMBER
Then my release version is 1.5 and my development version is still 1-SNAPSHOT.
Given my development version is 1.2-SNAPSHOT and the BUILD_NUMBER is 5
When I call release:prepare using BuildNumberVersionPolicy
Then my release version is 1.2.5 and my development version is still 1.2-SNAPSHOT.
As a project I want to preserve the current development version (X-SNAPSHOT or X.Y-SNAPSHOT) and automatically set the MINOR or MICRO version only to the environment variable
BUILD_NUMBER
. SoGiven my development version is 1-SNAPSHOT and the BUILD_NUMBER is 5 When I call release:prepare using BuildNumberVersionPolicy Then my release version is 1.5 and my development version is still 1-SNAPSHOT.
Given my development version is 1-SNAPSHOT and the TRAVIS_BUILD_NUMBER is 5 When I call release:prepare using BuildNumberVersionPolicy and the pom property
buildnumber-version-policy-identifier
is set to TRAVIS_BUILD_NUMBER Then my release version is 1.5 and my development version is still 1-SNAPSHOT.Given my development version is 1.2-SNAPSHOT and the BUILD_NUMBER is 5 When I call release:prepare using BuildNumberVersionPolicy Then my release version is 1.2.5 and my development version is still 1.2-SNAPSHOT.