TeamCity doesn't supply the name of a branch in "Build number format" If the name of the branch has been derived from the tag.

I want to see the number build the name of the branch. For example: 

 

But if the name of the branch was formed from the tag, it cannot be done:

 

Of course I can use a field ".vcs.branch.", but it's too long, and it's not comfortable to be perceived:

 

How do I set the name of a tag in the "Build number format"? 

0
1 comment

You can modify the build number during the build if you report it back as a service message: https://confluence.jetbrains.com/display/TCD10/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-ReportingBuildNumberReportingBuildNumber

This can be done as a build step at any point throughout the build.

0

Please sign in to leave a comment.