I am trying to pass the branch names from TeamCity to OctopusDeploy so that we can easily track which branch a deployment came from.
To do this I want to append the branch name onto the version number (or the nuget package built with octopack) so that I can display this in the OctopusDeploy UI.
This works fine, except that we are using git-flow so some of our branches contain slashes which causes octopack to fail (as file names cannot contain slashes):
+:refs/heads/(feature/*)
+:refs/heads/(release/*)
+:refs/heads/(hotfix/*)
Is there any way to replace the slashes with something else in TeamCity without changing the way we name our branches?