I use the following command:
Octo.exe create-release --project=“MyProject” --deployto=Dev.Prod --version=“8.1.0.10” --packageversion=“8.1.0.10” --force --waitfordeployment --deploymenttimeout=00:15:00 --server=http://192.168.175.31/api --apikey=
Octopus Command Line Tool, version 1.1.17.55
Finding project: MyProject
Handshaking with Octopus server: http://192.168.175.31/api
Handshake successful. Octopus version: 1.3.0.1535; API version: 2.0.0
Finding environments…
Finding steps for project…
Getting package versions for each step…
Sequence contains no elements
System.InvalidOperationException: Sequence contains no elements
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
at ProjectExtensions.GetPackageForStep(IOctopusSession session, Step step, String version)
at OctopusTools.Commands.CreateReleaseCommand.Execute()
at OctopusTools.Infrastructure.CommandProcessor.Process(String[] args)
The project has 3 packages to deploy and 3 Steps to execute a Powershell script. I suspect the Octo.exe does not know about the Steps that only contain Powershell scripts.