Skip to content

Commit 22f406c

Browse files
Use BUILD_COUNTER instead of BUILD_NUMBER
* BUILD_NUMBER is redefined by this build file on CI so we cannot run more than one Gradle step. * BUILD_COUNTER is defined on TeamCity to be %build.counter% and is not touched by the build.
1 parent ab87845 commit 22f406c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ if (project.hasProperty('iets3OpenSourceVersion')) {
8181
if (ciBuild) {
8282
currentBranch = GitBasedVersioning.gitBranch
8383

84-
def buildNumber = System.env.BUILD_NUMBER.toInteger()
84+
def buildNumber = System.env.BUILD_COUNTER.toInteger()
8585
if (currentBranch.startsWith("maintenance-")) {
8686
version = "$major.$minor.$buildNumber.${GitBasedVersioning.gitShortCommitHash}"
8787
} else {

0 commit comments

Comments
 (0)