We are using octopus 2.6.3, we have many projects that gets deployed separately.
Now, we need to create a single project call it – “Deploy All” and include all these separate projects into single project.
And, use single click … it will deploy all the included sub-projects.
Octo.exe is a tool that allows you to create releases and deploy them in Octopus from the command line. The links I provided on my previous reply show examples of how to do this.
ProjectX (which you’re gonna have to create manually) will only contain a set of Powershell steps that call this cmd line tool, once for each subproject.
thanks
I setup octo on our octopus server and created the powershell process … on execution I am getting following error
Tentacle script execution
Error 12:00:56
octo : The term ‘octo’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check
Error 12:00:56
the spelling of the name, or if a path was included, verify that the path is correct and try again.
Running PowerShell script: C:\Users\svcOctopusDeploy\AppData\Local\Tentacle\Temp\3f360213-5e11-4bf4-9e2e-d007eaa58a09.ps1
Error 12:23:00
& : The term ‘E:\OctopusTools.2.5.4.35\Octo.exe’ is not recognized as the name of a cmdlet, function, script file, or
Error 12:23:00
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
Error 12:23:00
again.
Error 12:23:00
At C:\Users\svcOctopusDeploy\AppData\Local\Tentacle\Temp\3f360213-5e11-4bf4-9e2e-d007eaa58a09.ps1:1 char:3
Error 12:23:00
Please see attached an example of a Powershell script step using octo.exe. You’re gonna need to use a couple more parameters like releaseversion,Project, deployto, etc.
Also, I don’t see anything different I did from what you sent.
Getting error while running the scripts on the tentacle
Do I need to setup anything on tentacle to make this work ?
Also, I don’t see anything different I did from what you sent.
Getting error while running the scripts on the tentacle
Do I need to setup anything on tentacle to make this work ?
You don’t need to setup anything special on the Tentacle, you just need to have Octo.exe on a folder on the Tentacle that will be running the command. It knows where Octo.exe is because you are passing the full path when calling the command. In the example below, Octo.exe was downloaded to C:\Tools
& C:\tools\octo.exe create-release --server=http://your-server/ --apikey=YourApiKey #And the rest of the arguments
The example you found in docs.octopusdeploy.com shows a generic path. Its up to the user to modify that part according to their file structure.