I was wondering if there is a way to pass a list of variable values as arguments to octo.exe. This would be useful when auto deploying from our CI server and want to provide a different value for say a build of a separate branch.
something like :
Octo.exe create-release -server=http://22.214.171.124:8081 -project=“My Project” -version=3.0.14349.2 -packageVersion=3.0.14349.2 -deployto=DEV --apiKey=API-XXXXXX --MyVar1=Value1 --MyVar2=Value2
Thanks for getting in touch! Yes but conditionally. You can pass variables, as many as you like, but it will only work for prompted variables.
The following GitHub issues explains a little about the reasoning (and the syntax). https://github.com/OctopusDeploy/Issues/issues/1149
For non-prompted variables we have the following UserVoice suggestion: http://octopusdeploy.uservoice.com/forums/170787-general/suggestions/6319014-associate-variables-with-a-release-when-creating-o
Hope this helps.
Excellent thanks, we can now pass the prompt variables from out TFS build to override the values on a per branch/build basis.