I am trying to create and assign a label in build template for continuous build.
How to create label during build process and assign this label to getVersion for continuos build, which runs e.g. every 2 hours?
<If Condition="[ String.IsNullOrWhiteSpace(LabelToBuild) Or String.IsNullOrEmpty(LabelToBuild)]" DisplayName="Not assigned LabelToBuild" sap:VirtualizedContainerService.HintSize="464,354"><sap:WorkflowViewStateService.ViewState><scg:Dictionary x:TypeArguments="x:String, x:Object"><x:Boolean x:Key="IsPinned">False</x:Boolean><x:Boolean x:Key="IsExpanded">True</x:Boolean></scg:Dictionary></sap:WorkflowViewStateService.ViewState><If.Then><Sequence DisplayName="Assign GetVersion without Label" sap:VirtualizedContainerService.HintSize="264,246"><sap:WorkflowViewStateService.ViewState><scg:Dictionary x:TypeArguments="x:String, x:Object"><x:Boolean x:Key="IsExpanded">True</x:Boolean><x:Boolean x:Key="IsPinned">False</x:Boolean></scg:Dictionary></sap:WorkflowViewStateService.ViewState><Assign DisplayName="Assign " sap:VirtualizedContainerService.HintSize="242,60"><Assign.To><OutArgument x:TypeArguments="x:String">[GetVersion]</OutArgument></Assign.To><Assign.Value><InArgument x:TypeArguments="x:String">[String.Format("L{0}", TODO CREATE LABEL, ASSIGN LABEL)]</InArgument></Assign.Value></Assign><mtbwa:WriteBuildMessage sap:VirtualizedContainerService.HintSize="242,22" Importance="[Microsoft.TeamFoundation.Build.Client.BuildMessageImportance.High]" Message="[String.Format("GetVersion properties when no label set to: {0}", GetVersion)]" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces" /></Sequence></If.Then></If>