Is there a way to define teamcity[\'build.number\'] property from command line? I tried -Pteamcity.build.number=1 but it didn\'t work.
I have a build.gradle file wit
this works from the command line
task hello << { println project.ext['teamcity.build.number'] }
and you call it
gradle hello -Pteamcity.build.number=1.45
hopefully that'll work also in your script