Hello,
I am trying to test out using the Octo.exe CLI and every time I try to create a release “create-release” everything looks fine then it throws an error shown below. I tried looking online for help and couldn’t find anything similar. I was able to create a release on the Octopus Deploy Website.
λ Octo.exe create-release --server=url --apiKey=key --project="Test Project"
Octopus Deploy Command Line Tool, version 4.24.4
Handshaking with Octopus server: omitted
Handshake successful. Octopus version: 3.8.1; API version: 3.0.0
Authenticated as: Maler,Mitchell
This Octopus Server supports channels
Finding project: Test Project
Automatically selecting the best channel for this release...
Building a release plan for Channel 'Default'...
Finding deployment process...
Finding release template...
Selected the release plan for Channel 'Default' - it is a perfect match
Using version number from release template: 0.0.2
Release plan for Test Project 0.0.2
Channel: 'Default' (this is the default channel)
Creating release...
System.ArgumentException: template is null
at Octopus.Client.UrlTemplate.Resolve()
at Octopus.Client.UrlTemplate.Resolve(String templateSpec, IDictionary`2 parameters)
at Octopus.Client.UrlTemplate.Resolve(String templateSpec, Object parameters)
at Octopus.Client.OctopusAsyncClient.QualifyUri(String path, Object parameters)
at Octopus.Client.OctopusAsyncClient.<Get>d__30`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Octopus.Client.OctopusAsyncClient.<Create>d__39`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Octopus.Cli.Commands.CreateReleaseCommand.<Execute>d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Octopus.Cli.Commands.ApiCommand.<Execute>d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Octopus.Cli.Program.Run(String[] args)
Exit code: -3