Version String Format - using Octopus Deploy Bamboo Plugin

Hi All,

I am using the Octopus Deploy (v3.15.4) plugin for Atlassian Bamboo (v6.0.3). I am stuck on trying to assign an appropriate version number. I have tried a whole range of values and it keeps failing and from reading other discussions on the forums here I have read it could be to do with Semantic Versioning but I just can’t figure out what a valid value would be. I don’t want to have a version number like 1.0.0.{buildNumber} because my actual version number is in my .NET AssemblyInfo.cs file. So I don’t want to have a misleading name on the package.

Here is the part of the log from Bamboo:

21-Jul-2017 17:22:53 System.ArgumentException: ‘175.PROJ.TEST.master’ is not a valid version string
21-Jul-2017 17:22:53 Parameter name: value
21-Jul-2017 17:22:53 at Octopus.Client.Model.SemanticVersion.Parse(String value, Boolean preserveMissingComponents)
21-Jul-2017 17:22:53 at Octopus.Cli.Commands.PackCommand.<.ctor>b__16_9(String v)
21-Jul-2017 17:22:53 at Octopus.Cli.Commands.OptionSet.<>c__DisplayClass11_0.b__0(OptionValueCollection v)
21-Jul-2017 17:22:53 at Octopus.Cli.Commands.OptionSet.ActionOption.OnParseComplete(OptionContext c)
21-Jul-2017 17:22:53 at Octopus.Cli.Commands.Option.Invoke(OptionContext c)
21-Jul-2017 17:22:53 at Octopus.Cli.Commands.OptionSet.ParseValue(String option, OptionContext c)
21-Jul-2017 17:22:53 at Octopus.Cli.Commands.OptionSet.Parse(String argument, OptionContext c)
21-Jul-2017 17:22:53 at Octopus.Cli.Commands.OptionSet.<>c__DisplayClass22_0.b__0(String argument)
21-Jul-2017 17:22:53 at System.Linq.Enumerable.WhereArrayIterator1.MoveNext() 21-Jul-2017 17:22:53 at System.Collections.Generic.List1…ctor(IEnumerable1 collection) 21-Jul-2017 17:22:53 at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
21-Jul-2017 17:22:53 at Octopus.Cli.Commands.OptionSet.Parse(IEnumerable1 arguments) 21-Jul-2017 17:22:53 at Octopus.Cli.Commands.Options.Parse(IEnumerable1 arguments)
21-Jul-2017 17:22:53 at Octopus.Cli.Commands.PackCommand.<>c__DisplayClass18_0.b__0()
21-Jul-2017 17:22:53 at System.Threading.Tasks.Task.InnerInvoke()
21-Jul-2017 17:22:53 at System.Threading.Tasks.Task.Execute()
21-Jul-2017 17:22:53 — End of stack trace from previous location where exception was thrown —
21-Jul-2017 17:22:53 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
21-Jul-2017 17:22:53 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
21-Jul-2017 17:22:53 at Octopus.Cli.Program.Run(String[] args)
21-Jul-2017 17:22:53 Exit code: -3

Any advice would be much appreciated.

I think I may have answered my own question by coming across this doc:

Also, I couldn’t find it before but your official documentation helped too:

https://octopus.com/docs/packaging-applications/versioning-in-octopus-deploy

Thanks

Hi David,

Thanks for getting in touch! I’m reaching out to confirm that you did manage to resolve your issue with version naming and to see if there is anything else that we can assist you with?

On that note, I’m glad to hear that you found the documentation, would you mind letting us know what search terms your were using so that we can make it more discoverable in future? Also, do you have any feedback on the documentation? We love feedback so any comments you have would be very welcome.

Regards

Alex