I am attempting to use octo. exe to pack up my c:\temp folder into a zip file and get it to automatically assign a version number, using the following
C:\Temp>octo pack --id=temp --format=zip
However it crashes with the following error
Octopus Deploy Command Line Tool, version 4.0.7+Branch.master.Sha.e04e9beff28f7e189baddab121c6cf689fddd9b6
Packing temp version “2017.1.25.164449”…
System.InvalidOperationException: Octopus: We want to avoid using NormalizedVersion()
at NuGet.Versioning.NuGetVersion.ToString()
at System.String.Concat(Object args)
at Octopus.Cli.Commands.ZipPackageBuilder.BuildPackage(String basePath, IList`1 includes, ManifestMetadata metadata, String outFolder, Boolean overwrite)
at Octopus.Cli.Commands.PackCommand.<>c__DisplayClass17_0.b__0()
at System.Threading.Tasks.Task.Execute()
— 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
If I specify a version number, e.g. by using
C:\Temp>octo pack --id=temp --version=1.0.0 --format=zip
then it works fine and creates the zip file with the following output
Octopus Deploy Command Line Tool, version 4.0.7+Branch.master.Sha.e04e9beff28f7e189baddab121c6cf689fddd9b6
Packing temp version “1.0.0”…
Saving “temp.1.0.0.zip” to “C:\Temp”…
Adding files from “C:\Temp” matching pattern “**”
Adding file: “App-Copy.config”
Adding file: “App.config”
Adding file: “test.ps1”
Adding file: “tfshistory.txt”
Adding file: “Web Services.json”
Done.