Deploying specific version from TeamCity

Hi all,

I have 1 build configuration in TeamCity that deploys to Test site in Octo.

I ran into the same problem as here:

My deploys are always 1 version behind. Is there a way to specify that it has to wait for the exact version as sent by TeamCity instead of just taking the first package it finds?

I checked the build log from TC and I saw this command is executed:
octo.exe create-release --server --apikey SECRET --project Demo --enableservicemessages --version --deployto Test

But probably it can’t find the nuget package it just uses, in my opinion this is quite dangerous and can lead to some unexpected deployments.

Can I add --packageversion=%build.number% to TeamCity’s custom parameter, or better --package %build.number%