I am trying to integrate Octopus Deploy with TeamCity. I have Octopus Deploy able to publish my Azure website, using MS Deploy, but from TeamCity I get an error:
[14:16:45]Step 1/1: Package deploy (OctopusDeploy: Deploy release) (1s)
[14:16:46][Step 1/1] Octopus Deploy (1s)
[14:16:46][Octopus Deploy] Running command: octo.exe deploy-release --server http://infinibuild.cloudapp.net:81 --apikey SECRET --project Form Engine --enableservicemessages --version 1.0.220.12 --deployto Dev --defaultpackageversion=1.0.220.12
[14:16:46][Octopus Deploy] Deploying Octopus Deploy release
[14:16:46][Octopus Deploy] Octopus Deploy Command Line Tool, version 2.5.3.33
[14:16:46][Octopus Deploy]
[14:16:47][Octopus Deploy] Unrecognized command arguments: --defaultpackageversion=1.0.220.12
[14:16:47][Octopus Deploy] Exit code: -1
[14:16:47][Octopus Deploy] Octo.exe exit code: -1
[14:16:47][Step 1/1] Unable to create or deploy release. Please check the build log for details on the error.
[14:16:47][Step 1/1] Step Package deploy (OctopusDeploy: Deploy release) failed
I have tried --packageversion and --defaultpackageversion, but I get the same error each time.
I can see that I am using an equals sign instead of a space as the other commands do, but if I put a space in the Build Step, it is replaced with a comma. I got this from the article: http://docs.octopusdeploy.com/display/OD/TeamCity
Can you see what I am doing wrong?
Thanks,
Karl