Reputation: 1150
I want an artifact name for e.g. game-1.0.%BuilNumber%.jar
where BuildNumber
is number of teamcity build.
I am using gradle to build artifacts. Is it with that tool possible or is there another way?
Upvotes: 1
Views: 1021
Reputation: 13466
Teamcity exposes build parameters via a Gradle project property called teamcity
. This would allow you to do something like:
jar {
version += '.' + teamcity['build.number']
}
Upvotes: 2