--deployto with multiple Enviroments

(Alex) #1


I am using Jenkins in combination with Octopus Deployment. Currently I want to deploy a release to mutilpe Enviroments… I used this Guideline: https://octopus.com/docs/api-and-integration/octo.exe-command-line/create-release

This part was interessting:
–deployto=VALUE [Optional] Environment to automatically deploy to, e.g., Production

----> but i didn’t metion that I can deploy to multiple Targets, does someone know how this works?

Tried this:
–deployto Test_Single_Server,Test_Anlage
–deployto Test_Single_Server Test_Anlage
–deployto Test_Single_Server;Test_Anlage

For Information my full command:
“D:\Builds\Helper\OctopusTools.4.24.4\octo.exe” create-release --project “Test” --version=“1.%BUILD_NUMBER%.%SVN_REVISION%” --packageVersion 1.%BUILD_NUMBER%.%SVN_REVISION% --apiKey ******* -server http://****** --deployto Test_Single_Server;Test_Anlage --progress --waitfordeployment


(Alex) #2

Stupid Question from myself :slight_smile: … This is the solution: split command up in 2 Arguments like this:
–deployto Test_Single_Server --deployto Test_Anlage --progress --waitfordeployment

(Kenneth Bates) #4

Hi Alex,

Thanks for getting in touch! That’s great to hear you’ve gotten to the solution. The Octo.exe create-release doc page you linked to didn’t mention specifying this argument multiple times, so I’ve gone ahead and updated that to hopefully help in the future! Thanks for pointing this out, and please don’t hesitate to reach out if you have any further questions or concerns moving forward. :slight_smile:

Best regards,


(Alex) #5

That’s perfect! Thank you! (specify this argument multiple times to deploy to multiple environments)