Octopus Deploy Command Line Tool, version 2.1.2.37
Handshaking with Octopus server: http://blah
Handshake successful. Octopus version: 2.1.3.1223; API version: 3.0.0
Finding project: blahDeeBlah
Finding releases for project…
System.Exception: The document does not define a link for 'Next’
at Octopus.Client.Model.Resource.Link(String name)
at OctopusTools.Commands.DeleteReleasesCommand.Execute()
at OctopusTools.Commands.ApiCommand.Execute(String[] commandLineArguments)
at OctopusTools.Program.Main(String[] args)
Exit code: -3
Actually, never mind. This must be because the releases are being yanked out from underneath Octo.exe since I’ve changed the retention policy and all those releases are now being deleted from within Octopus at the same time Octo.exe is looking through the api.
We had the same issue but our retention policies are turned off. I had a quick look at the code for Octo in GitHub and I think there’s a bug in DeleteReleasesCommand.cs (line 72):
Thanks Henrik
FYI I also received an error when importing a project using the Octo.exe available for download v2.6.3.59. In the end I downloaded the code so I could debug the issue but the import worked when running the code. It seems as though the version for download is a little out of date?