remote-run branch name specification for master
I've got a Git repo hooked up with branche name specification:
+:refs/heads/remote-run/*
I'm referring to this specification with:
%teamcity.build.branch%
Now, this is all ok for remote-run branches, but for the master, it's problematic:
| branch ref | teamcity.build.branch |
|---|---|
| /refs/heads/remote-run/some-feature | some-feature |
| /refs/heads/master | refs/heads/master |
Is there a way to setup the branch specification so that the following becomes the net result?
| branch ref | teamcity.build.branch |
|---|---|
| /refs/heads/remote-run/some-feature | some-feature |
| /refs/heads/master | master |
Please sign in to leave a comment.
Ok, I've found it myself. I've setup the branch specification as follows:
+:refs/heads/(master)
+:refs/heads/remote-run/*