Accessing Teamcity build number in Gradle build script
11,377
These are simply JVM system properties that TeamCity sets for the Ant/Gradle JVM. You can access them with the usual Java means, for example System.getProperty("build.number")
.
Author by
Paul
Updated on June 27, 2022Comments
-
Paul almost 2 years
How can I access the build number and VCS checkout number in a Gradle script executed by Teamcity?
In Ant I can use
${build.number}
and${build.vcs.number.1}
respectively.Thank you.