Git TagNameFormat Build Label Only

Added by Ryan Swenson about 3 years ago

I am having trouble getting the Git source control task to create a tag in github named only the build label (e.g. 324). I have tried entering {0} which the parser changes to only 0. Also the recommended \{0\} results in an exception:

System.FormatException: Input string was not in a correct format.
at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
at System.String.Format(IFormatProvider provider, String format, Object[] args)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Git.LabelSourceControl(IIntegrationResult result)
at ThoughtWorks.CruiseControl.Core.IntegrationRunner.Build(IIntegrationResult result)
at ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate(IntegrationRequest request)

We are moving from svn to git and would like our tag names to remain consistent. The svn default is just {0} while the Git default is "CCNet-Build-{0}". Placing anything before the {0} results in the parser picking it up correctly (e.g. Build-{0}) but having only {0} changes it to a 0. Any help is appreciated. Thanks!