Capturing just wildcard portion of longer logical branch name

If I have a branch specification like:

+:refs/heads/(release/*)

and then use that for a trigger in a build configuration like:

+:release/*

 

Is there a way to capture just the * part of the branch name to use in the build number (i.e. "2018.1" in "release/2018.1")?

0
1 comment

I'm afraid not directly. You can add a first step to your build configuration, or a first configuration to your chain that parses the string and pushes the result as a build number via a service message: https://confluence.jetbrains.com/display/TCD10/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-ReportingBuildNumberReportingBuildNumber

0

Please sign in to leave a comment.