Our TeamCity creates nuget packages of all our branches using NuGet versioning syntax.
Octopus uses the nuget-version as the release version. I created a channel for deploying feature branches and i want to use the branchname part of the release-version as the hostname for the IIS binding.
Thanks for your reply. Its not the Channelname, but the releasenumber i need, so i think i should use Octopus.Release.Number. But only a part of the versionnumber.
If the versionnumber is 1.0.125-fasterbackend how to get only the last part? Is i possible to use some kind of Regex on the variable?
But you wouldn’t be able to use this as part of the variable replacement we do on so you would have to configure the IIS hostname in a post-deploy script, which makes it a bit more complex.