Hi, we use a project to deploy a number of other projects together.
We use " #{Octopus.Version.Channel.LastMajor}.#{Octopus.Version.Channel.LastMinor}.#{Octopus.Version.Channel.LastPatch}.#{Octopus.Version.Channel.NextBuild}" to try to get an incrementing release number, but #{Octopus.Version.Channel.NextBuild} doesn’t increment.
I’ve looked for documentation on #{Octopus.Version.Channel.NextBuild}, but couldn’t find anything. Is this a valid approach and variable?
Thanks
Richard
When testing this I’m seeing the same behaviour as you, and it does seem unusual. I’ve queried this with our engineers to see if they can confirm whether this is intended or not.
It does look like this might be a bug, we did notice that the next option in the chain did increment though. So, switching NextBuild for NextRevision should get this working for you.