We have are using the octopus-deploy build step in teamcity to deploy the latest successful builds from another build configuration.
My intent is to have release numbers tied to artifact numbers (which in turned are tied to SCM numbers).
When I deploy a new build, octopus would create a new release with that version, and deploy it.
If I run the teamcity deploy step again (for an artifact that's already been created), octopus should redeploy the same artifact using the same release number. (instead of failing with a "this release already exists").
From the octo.exe document, the --force option should allow me to do this. (Which I should be able to add to the "Additional command line arguments" in teamcity).
However I'm getting an Unrecognized command arguments: --force error.
How do I fix this? or what are some other options? (without changing the artifact / release numbering strategy).
The call:
octo.exe create-release --server octoServerHostName --apikey SECRET --project ProjectName --enableservicemessages --version 1.0.59356.0 --deployto showcase --waitfordeployment --force
Creating Octopus Deploy release [15:26:05]Octopus Deploy Command Line Tool, version 2.0.8.22 [15:26:05] [15:26:05]Unrecognized command arguments: --force