When I create release from TeamCity, I specify --packageversion %build.number%
as an additional command line argument. Is there a way to read that variable in Octopus Deploy?
Looking at documentation, I've found only one variable containing "packageversion": Octopus.Action.Package.NuGetPackageVersion
and it doesn't seem like what I need as it is specific to a step and I want to get a global --packageversion (also known as defaultpackageversion).