Skip to content

Instantly share code, notes, and snippets.

@sdluxeon
Last active November 12, 2015 09:09
Show Gist options
  • Select an option

  • Save sdluxeon/a72390c654d1a5318d2d to your computer and use it in GitHub Desktop.

Select an option

Save sdluxeon/a72390c654d1a5318d2d to your computer and use it in GitHub Desktop.
<Activity mc:Ignorable="sads sap sap2010" x:Class="TfsBuild.Process" this:Process.BuildNumberFormat="[&quot;$(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.r)&quot;]" this:Process.CleanRepository="[True]" this:Process.AgentSettings="[New Microsoft.TeamFoundation.Build.Common.BuildParameter(&quot; { &quot;&quot;MaxExecutionTime&quot;&quot;: &quot;&quot;00:00:00&quot;&quot;, &quot;&quot;MaxWaitTime&quot;&quot;: &quot;&quot;04:00:00&quot;&quot;, &quot;&quot;Name&quot;&quot;: &quot;&quot;*&quot;&quot;, &quot;&quot;Tags&quot;&quot;: [], &quot;&quot;TagComparison&quot;&quot;: &quot;&quot;MatchExactly&quot;&quot; } &quot;)]" this:Process.CleanBuild="[True]" this:Process.OutputLocation="[&quot;SingleFolder&quot;]" this:Process.CreateWorkItem="[True]" this:Process.UpdateAssociatedWorkItems="[True]" this:Process.SupportedReasons="Manual, IndividualCI, BatchedCI, Schedule, ScheduleForced, UserCreated" this:Process.BuildProcessVersion="12.0"
xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:mt="clr-namespace:Microsoft.TeamFoundation;assembly=Microsoft.TeamFoundation.Common"
xmlns:mtba="clr-namespace:Microsoft.TeamFoundation.Build.Activities;assembly=Microsoft.TeamFoundation.Build.Activities"
xmlns:mtbac="clr-namespace:Microsoft.TeamFoundation.Build.Activities.Core;assembly=Microsoft.TeamFoundation.Build.Activities"
xmlns:mtbag="clr-namespace:Microsoft.TeamFoundation.Build.Activities.Git;assembly=Microsoft.TeamFoundation.Build.Activities"
xmlns:mtbat="clr-namespace:Microsoft.TeamFoundation.Build.Activities.TeamFoundation;assembly=Microsoft.TeamFoundation.Build.Activities"
xmlns:mtbc="clr-namespace:Microsoft.TeamFoundation.Build.Common;assembly=Microsoft.TeamFoundation.Build.Common"
xmlns:mtbc1="clr-namespace:Microsoft.TeamFoundation.Build.Client;assembly=Microsoft.TeamFoundation.Build.Client"
xmlns:mtbw="clr-namespace:Microsoft.TeamFoundation.Build.Workflow;assembly=Microsoft.TeamFoundation.Build.Workflow"
xmlns:mtbwa="clr-namespace:Microsoft.TeamFoundation.Build.Workflow.Activities;assembly=Microsoft.TeamFoundation.Build.Workflow"
xmlns:mtbwt="clr-namespace:Microsoft.TeamFoundation.Build.Workflow.Tracking;assembly=Microsoft.TeamFoundation.Build.Workflow"
xmlns:mttbb="clr-namespace:Microsoft.TeamFoundation.TestImpact.BuildIntegration.BuildActivities;assembly=Microsoft.TeamFoundation.TestImpact.BuildIntegration"
xmlns:mtvc="clr-namespace:Microsoft.TeamFoundation.VersionControl.Client;assembly=Microsoft.TeamFoundation.VersionControl.Client"
xmlns:mtvc1="clr-namespace:Microsoft.TeamFoundation.VersionControl.Common;assembly=Microsoft.TeamFoundation.VersionControl.Common"
xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities"
xmlns:s="clr-namespace:System;assembly=mscorlib"
xmlns:s1="clr-namespace:System;assembly=System"
xmlns:s2="clr-namespace:System;assembly=System.Core"
xmlns:s3="clr-namespace:System;assembly=System.ComponentModel.Composition"
xmlns:sa="clr-namespace:System.Activities;assembly=System.Activities"
xmlns:sad="clr-namespace:System.Activities.Debugger;assembly=System.Activities"
xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation"
xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib"
xmlns:si="clr-namespace:System.IO;assembly=mscorlib"
xmlns:si1="clr-namespace:System.IO;assembly=System"
xmlns:si2="clr-namespace:System.IO;assembly=WindowsBase"
xmlns:si3="clr-namespace:System.IO;assembly=System.Core"
xmlns:sl="clr-namespace:System.Linq;assembly=System.Core"
xmlns:this="clr-namespace:TfsBuild"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<x:Members>
<x:Property Name="ScriptName" Type="InArgument(x:String)" />
<x:Property Name="ScriptArguments" Type="InArgument(x:String)" />
<x:Property Name="ConfigurationsToBuild" Type="InArgument(s:String[])" />
<x:Property Name="BuildNumberFormat" Type="InArgument(x:String)" />
<x:Property Name="CleanRepository" Type="InArgument(x:Boolean)" />
<x:Property Name="AgentSettings" Type="InArgument(mtbc:BuildParameter)" />
<x:Property Name="CleanBuild" Type="InArgument(x:Boolean)" />
<x:Property Name="CheckoutOverride" Type="InArgument(x:String)" />
<x:Property Name="OutputLocation" Type="InArgument(x:String)" />
<x:Property Name="SymbolStorePath" Type="InArgument(x:String)" />
<x:Property Name="CreateWorkItem" Type="InArgument(x:Boolean)" />
<x:Property Name="UpdateAssociatedWorkItems" Type="InArgument(x:Boolean)" />
<x:Property Name="Metadata" Type="mtbw:ProcessParameterMetadataCollection" />
<x:Property Name="SupportedReasons" Type="mtbc1:BuildReason" />
<x:Property Name="BuildProcessVersion" Type="x:String" />
</x:Members>
<this:Process.ScriptName>
<InArgument x:TypeArguments="x:String" />
</this:Process.ScriptName>
<this:Process.ScriptArguments>
<InArgument x:TypeArguments="x:String" />
</this:Process.ScriptArguments>
<this:Process.Metadata>
<mtbw:ProcessParameterMetadataCollection>
<mtbw:ProcessParameterMetadata BrowsableWhen="Always" Category="#100 Script" Description="Script executed after checkout" DisplayName="Script name" ParameterName="ScriptName" />
<mtbw:ProcessParameterMetadata BrowsableWhen="Always" Category="#100 Script" Description="Script arguments" DisplayName="Arguments" ParameterName="ScriptArguments" />
</mtbw:ProcessParameterMetadataCollection>
</this:Process.Metadata>
<mva:VisualBasic.Settings>
<x:Null />
</mva:VisualBasic.Settings>
<sap2010:WorkflowViewState.IdRef>TfsBuild.Process_1</sap2010:WorkflowViewState.IdRef>
<TextExpression.NamespacesForImplementation>
<sco:Collection x:TypeArguments="x:String">
<x:String>System.Activities</x:String>
<x:String>System.Activities.Statements</x:String>
<x:String>System.Activities.Expressions</x:String>
<x:String>System.Activities.Validation</x:String>
<x:String>System.Activities.XamlIntegration</x:String>
<x:String>Microsoft.TeamFoundation</x:String>
<x:String>Microsoft.TeamFoundation.Build.Client</x:String>
<x:String>Microsoft.TeamFoundation.Build.Common</x:String>
<x:String>Microsoft.TeamFoundation.Build.Workflow</x:String>
<x:String>Microsoft.TeamFoundation.Build.Workflow.Activities</x:String>
<x:String>Microsoft.TeamFoundation.Build.Activities</x:String>
<x:String>Microsoft.TeamFoundation.Build.Activities.Core</x:String>
<x:String>Microsoft.TeamFoundation.Build.Activities.Git</x:String>
<x:String>Microsoft.TeamFoundation.Build.Workflow.Tracking</x:String>
<x:String>Microsoft.TeamFoundation.TestImpact.BuildIntegration.BuildActivities</x:String>
<x:String>Microsoft.TeamFoundation.VersionControl.Client</x:String>
<x:String>Microsoft.TeamFoundation.VersionControl.Common</x:String>
<x:String>Microsoft.VisualBasic.Activities</x:String>
<x:String>System</x:String>
<x:String>System.Activities.Debugger</x:String>
<x:String>System.Collections.Generic</x:String>
<x:String>System.Linq</x:String>
<x:String>System.Windows.Markup</x:String>
<x:String>TfsBuild</x:String>
<x:String>System.IO</x:String>
</sco:Collection>
</TextExpression.NamespacesForImplementation>
<TextExpression.ReferencesForImplementation>
<sco:Collection x:TypeArguments="AssemblyReference">
<AssemblyReference>System.Activities</AssemblyReference>
<AssemblyReference>Microsoft.TeamFoundation.Common</AssemblyReference>
<AssemblyReference>Microsoft.TeamFoundation.Build.Client</AssemblyReference>
<AssemblyReference>Microsoft.TeamFoundation.Build.Common</AssemblyReference>
<AssemblyReference>Microsoft.TeamFoundation.Build.Workflow</AssemblyReference>
<AssemblyReference>Microsoft.TeamFoundation.Build.Activities</AssemblyReference>
<AssemblyReference>Microsoft.TeamFoundation.TestImpact.BuildIntegration</AssemblyReference>
<AssemblyReference>Microsoft.TeamFoundation.VersionControl.Client</AssemblyReference>
<AssemblyReference>Microsoft.TeamFoundation.VersionControl.Common</AssemblyReference>
<AssemblyReference>mscorlib</AssemblyReference>
<AssemblyReference>System.Core</AssemblyReference>
<AssemblyReference>PresentationFramework</AssemblyReference>
<AssemblyReference>WindowsBase</AssemblyReference>
<AssemblyReference>PresentationCore</AssemblyReference>
<AssemblyReference>System.Xaml</AssemblyReference>
<AssemblyReference>Tfs.Nyx</AssemblyReference>
<AssemblyReference>System</AssemblyReference>
<AssemblyReference>System.ServiceModel</AssemblyReference>
</sco:Collection>
</TextExpression.ReferencesForImplementation>
<Sequence DisplayName="Overall build process" sap2010:WorkflowViewState.IdRef="Sequence_5">
<mtbac:SetBuildNumber DropLocation="{x:Null}" BuildNumberFormat="[BuildNumberFormat]" DisplayName="Update build number" sap2010:WorkflowViewState.IdRef="SetBuildNumber_2" />
<mtbwa:AgentScope DataToIgnore="" DisplayName="Run on agent" sap2010:WorkflowViewState.IdRef="AgentScope_2" MaxExecutionTime="[AgentSettings.GetValue(Of TimeSpan)(&quot;MaxExecutionTime&quot;, new System.TimeSpan(0,0,0))]" MaxWaitTime="[AgentSettings.GetValue(Of TimeSpan)(&quot;MaxWaitTime&quot;, new System.TimeSpan(4,0,0))]" ReservationSpec="[AgentSettings.CreateAgentReservationSpec()]" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces">
<mtbwa:AgentScope.Variables>
<Variable x:TypeArguments="mtbc1:IBuildDetail" Name="buildDetails" />
<Variable x:TypeArguments="x:String" Name="buildFolder" />
</mtbwa:AgentScope.Variables>
<mtbac:InitializeEnvironment BinariesFolder="bin" DisplayName="Initialize environment" sap2010:WorkflowViewState.IdRef="InitializeEnvironment_2" SourceFolder="src" TestResultsFolder="tst" />
<mtbag:GitPull CheckoutSubmodules="{x:Null}" CleanRepository="[CleanRepository]" Commit="[CheckoutOverride]" DisplayName="Pull sources from Git repo" Enabled="True" sap2010:WorkflowViewState.IdRef="GitPull_3" />
<mtba:AssociateChanges DisplayName="Associate the changesets that occurred since the last good build" Enabled="True" sap2010:WorkflowViewState.IdRef="AssociateChanges_2" UpdateWorkItems="[UpdateAssociatedWorkItems]" />
<mtba:RunScript DisplayName="Run Script" Enabled="True" Arguments="[ScriptArguments]" FilePath="[ScriptName]" sap2010:WorkflowViewState.IdRef="RunScript_1" />
<mtbwa:GetBuildDetail sap2010:WorkflowViewState.IdRef="GetBuildDetail_2" Result="[buildDetails]" />
<mtbwa:GetBuildDirectory sap2010:WorkflowViewState.IdRef="GetBuildDirectory_2" Result="[buildFolder]" />
<mtbwa:CopyDirectory Destination="[buildDetails.DropLocation]" sap2010:WorkflowViewState.IdRef="CopyDirectory_3" Source="[System.IO.Path.Combine(buildFolder, &quot;src/bin&quot;)]" />
</mtbwa:AgentScope>
<sads:DebugSymbol.Symbol>dzFEOlxQcm9qZWN0c1xCbGFnb1xTb2xpZFxURlNCdWlsZFxUZnMuTnl4XE55eC54YW1sIwHDAQHKAQEIAfwFAYMGAQcBwwUB3gUBBgHnAQGEBQEFAawGAbMGAQQBngUBpQUBAwFlAaQBAQJzA4MBDgIBAXQFdLIBAgEidQWBARgCAQJ0RXRaAgEjdfABdcwCAgEFdYIBdeMBAgEEdd0CdYsDAgEDegd6xQECAR57B3vaAQIBGHwHfOEBAgEUfQd9hwECARB+B35qAgENfwd/bwIBCoABB4ABvgECAQZ6pQF6qgECASF6M3o4AgEger0BesIBAgEfe0R7VwIBHHtfe3MCARp7pQF7qwECARl8wQF83gECARZ8dXx7AgEVfTh9PgIBE31IfVYCARF+V35nAgEOf11/bAIBC4ABKIABRQIBCYABf4ABuwECAQc=</sads:DebugSymbol.Symbol>
</Sequence>
<sap2010:WorkflowViewState.ViewStateManager>
<sap2010:ViewStateManager>
<sap2010:ViewStateData Id="SetBuildNumber_2" sap:VirtualizedContainerService.HintSize="222,22" />
<sap2010:ViewStateData Id="InitializeEnvironment_2" sap:VirtualizedContainerService.HintSize="200,22" />
<sap2010:ViewStateData Id="GitPull_3" sap:VirtualizedContainerService.HintSize="200,22" />
<sap2010:ViewStateData Id="AssociateChanges_2" sap:VirtualizedContainerService.HintSize="200,22" />
<sap2010:ViewStateData Id="RunScript_1" sap:VirtualizedContainerService.HintSize="200,22" />
<sap2010:ViewStateData Id="GetBuildDetail_2" sap:VirtualizedContainerService.HintSize="200,22" />
<sap2010:ViewStateData Id="GetBuildDirectory_2" sap:VirtualizedContainerService.HintSize="200,22" />
<sap2010:ViewStateData Id="CopyDirectory_3" sap:VirtualizedContainerService.HintSize="200,22" />
<sap2010:ViewStateData Id="AgentScope_2" sap:VirtualizedContainerService.HintSize="222,518" />
<sap2010:ViewStateData Id="Sequence_5" sap:VirtualizedContainerService.HintSize="244,704">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</sap2010:ViewStateData>
<sap2010:ViewStateData Id="TfsBuild.Process_1" sap:VirtualizedContainerService.HintSize="284,784">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="ShouldExpandAll">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</sap2010:ViewStateData>
</sap2010:ViewStateManager>
</sap2010:WorkflowViewState.ViewStateManager>
</Activity>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment