203 lines
24 KiB
Text
203 lines
24 KiB
Text
|
<Activity mc:Ignorable="sap sads" x:Class="TfsBuild.Process" this:Process.LabWorkflowParameters="[New Microsoft.TeamFoundation.Lab.Workflow.Activities.LabWorkflowDetails()]" this:Process.Verbosity="[Microsoft.TeamFoundation.Build.Workflow.BuildVerbosity.Normal]" this:Process.BuildNumberFormat="["$(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.r)"]" this:Process.SupportedReasons="Manual, BatchedCI, Schedule, ScheduleForced, IndividualCI" this:Process.TimeoutForDeploymentScriptInMinutes="30" 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:mtbc="clr-namespace:Microsoft.TeamFoundation.Build.Client;assembly=Microsoft.TeamFoundation.Build.Client" xmlns:mtbc1="clr-namespace:Microsoft.TeamFoundation.Build.Common;assembly=Microsoft.TeamFoundation.Build.Common" xmlns:mtbp="clr-namespace:Microsoft.TeamFoundation.Build.ProcessComponents;assembly=Microsoft.TeamFoundation.Build.ProcessComponents" 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:mtbws="clr-namespace:Microsoft.TeamFoundation.Build.Workflow.Services;assembly=Microsoft.TeamFoundation.Build.Workflow" xmlns:mtlc="clr-namespace:Microsoft.TeamFoundation.Lab.Client;assembly=Microsoft.TeamFoundation.Lab.Client" xmlns:mtltc="clr-namespace:Microsoft.TeamFoundation.Lab.TestIntegration.Client;assembly=Microsoft.TeamFoundation.Lab.TestIntegration.Client" xmlns:mtlwa="clr-namespace:Microsoft.TeamFoundation.Lab.Workflow.Activities;assembly=Microsoft.TeamFoundation.Lab.Workflow.Activities" xmlns:mtlwc="clr-namespace:Microsoft.TeamFoundation.Lab.WorkflowIntegration.Client;assembly=Microsoft.TeamFoundation.Lab.WorkflowIntegration.Client" xmlns:mttbb="clr-namespace:Microsoft.TeamFoundation.TestImpact.BuildIntegration.BuildActivities;assembly=Microsoft.TeamFoundation.TestImpact.BuildIntegration" xmlns:mttc="clr-namespace:Microsoft.TeamFoundation.TestManagement.Client;assembly=Microsoft.TeamFoundation.TestManagement.Client" xmlns:mtvc="clr-namespace:Microsoft.TeamFoundation.VersionControl.Client;assembly=Microsoft.TeamFoundation.VersionControl.Client" 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.ServiceModel" xmlns:s4="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:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib" 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="BuildProcessVersion" Type="x:String" />
|
||
|
<x:Property Name="Metadata" Type="mtbw:ProcessParameterMetadataCollection" />
|
||
|
<x:Property Name="LabWorkflowParameters" Type="InArgument(mtlwa:LabWorkflowDetails)" />
|
||
|
<x:Property Name="Verbosity" Type="InArgument(mtbw:BuildVerbosity)" />
|
||
|
<x:Property Name="BuildNumberFormat" Type="InArgument(x:String)" />
|
||
|
<x:Property Name="SupportedReasons" Type="mtbc:BuildReason" />
|
||
|
<x:Property Name="TimeoutForDeploymentScriptInMinutes" Type="InArgument(x:Int32)">
|
||
|
<x:Property.Attributes>
|
||
|
<RequiredArgumentAttribute />
|
||
|
</x:Property.Attributes>
|
||
|
</x:Property>
|
||
|
</x:Members>
|
||
|
<this:Process.BuildProcessVersion>11.0</this:Process.BuildProcessVersion>
|
||
|
<this:Process.Metadata>
|
||
|
<mtbw:ProcessParameterMetadataCollection>
|
||
|
<mtbw:ProcessParameterMetadata _locID="Activity001" _locAttrData="DisplayName" BrowsableWhen="Always" Category="Misc" DisplayName="Timeout For Each Deployment Script (in Minutes)" ParameterName="TimeoutForDeploymentScriptInMinutes" />
|
||
|
</mtbw:ProcessParameterMetadataCollection>
|
||
|
</this:Process.Metadata>
|
||
|
<sap:VirtualizedContainerService.HintSize>920,3702</sap:VirtualizedContainerService.HintSize>
|
||
|
<mva:VisualBasic.Settings>Assembly references and imported namespaces serialized as XML namespaces</mva:VisualBasic.Settings>
|
||
|
<Sequence _locID="Activity002" _locAttrData="DisplayName" DisplayName="Application Deployment Workflow" sap:VirtualizedContainerService.HintSize="880,3662" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces">
|
||
|
<Sequence.Variables>
|
||
|
<Variable x:TypeArguments="mtbc:IBuildDetail" Name="BuildDetail" />
|
||
|
<Variable x:TypeArguments="x:String" Name="LabEnvironmentUri" />
|
||
|
<Variable x:TypeArguments="x:String" Name="BuildLocation" />
|
||
|
<Variable x:TypeArguments="x:Int64" Name="SnapshotId" />
|
||
|
<Variable x:TypeArguments="x:Int32" Name="QueueBuildId" />
|
||
|
<Variable x:TypeArguments="mtbc:BuildStatus" Default="[Microsoft.TeamFoundation.Build.Client.BuildStatus.Succeeded]" Name="BuildStatus" />
|
||
|
<Variable x:TypeArguments="mtbc:IBuildDetail" Name="ChildBuildDetail" />
|
||
|
<Variable x:TypeArguments="mtbc:IBuildDetail" Name="SelectedBuildDetail" />
|
||
|
<Variable x:TypeArguments="x:String" Name="BuildNumber" />
|
||
|
<Variable x:TypeArguments="mtlc:LabEnvironment" Name="LabEnvironment" />
|
||
|
</Sequence.Variables>
|
||
|
<mtbwa:UpdateBuildNumber _locID="Activity003" _locAttrData="DisplayName" BuildNumberFormat="[BuildNumberFormat]" DisplayName="Update Build Number" sap:VirtualizedContainerService.HintSize="858,22" />
|
||
|
<mtbwa:GetBuildDetail _locID="Activity004" _locAttrData="DisplayName" DisplayName="Get Build Details" sap:VirtualizedContainerService.HintSize="858,22" Result="[BuildDetail]" />
|
||
|
<If _locID="Activity005" _locAttrData="DisplayName" Condition="[LabWorkflowParameters.BuildDetails.IsTeamSystemBuild = True AndAlso LabWorkflowParameters.BuildDetails.QueueNewBuild = True]" DisplayName="If Build is needed" sap:VirtualizedContainerService.HintSize="858,416">
|
||
|
<If.Then>
|
||
|
<Sequence _locID="Activity006" _locAttrData="DisplayName" DisplayName="Do Build" sap:VirtualizedContainerService.HintSize="301,308">
|
||
|
<mtlwa:RunWorkflow _locID="Activity007" _locAttrData="DisplayName" BuildController="{x:Null}" LabEnvironmentUri="{x:Null}" BuildDefinition="[LabWorkflowParameters.BuildDetails.BuildDefinitionName]" DisplayName="Start Build Workflow" sap:VirtualizedContainerService.HintSize="242,22" ProjectName="[BuildDetail.TeamProject]" Result="[QueueBuildId]" />
|
||
|
<mtlwa:WaitForWorkflow _locID="Activity008" _locAttrData="DisplayName" AllowPartiallySucceededBuild="True" BuildDetails="[ChildBuildDetail]" DisplayName="Wait For Build To Complete" sap:VirtualizedContainerService.HintSize="242,22" LabWorkflowType="[Microsoft.TeamFoundation.Lab.Workflow.Activities.WorkflowType.Build]" MaxConsecutiveFailuresToIgnoreDuringWaitForCompletion="[3]" MaxWaitTime="[TimeSpan.Zero]" QueueBuildId="[QueueBuildId]" RefreshInterval="[System.TimeSpan.FromMinutes(1)]" Result="[BuildStatus]" ThrowOnError="True" />
|
||
|
<Assign _locID="Activity009" _locAttrData="DisplayName" DisplayName="Set Build Location" sap:VirtualizedContainerService.HintSize="242,60">
|
||
|
<Assign.To>
|
||
|
<OutArgument x:TypeArguments="x:Uri">[LabWorkflowParameters.BuildDetails.BuildUri]</OutArgument>
|
||
|
</Assign.To>
|
||
|
<Assign.Value>
|
||
|
<InArgument x:TypeArguments="x:Uri">[ChildBuildDetail.Uri]</InArgument>
|
||
|
</Assign.Value>
|
||
|
</Assign>
|
||
|
</Sequence>
|
||
|
</If.Then>
|
||
|
</If>
|
||
|
<mtlwa:WriteDeploymentInformation _locID="Activity010" _locAttrData="DisplayName, Message" Url="{x:Null}" DeploymentInformationType="[Microsoft.TeamFoundation.Build.Common.DeploymentInformationTypes.Deploy]" DisplayName="Update Deployment Summary" sap:VirtualizedContainerService.HintSize="858,22" Message="[String.Format("Lab environment: {0}", LabWorkflowParameters.EnvironmentDetails.LabEnvironmentName)]" />
|
||
|
<mtlwa:GetBuildLocationAndBuildNumber _locID="Activity011" _locAttrData="DisplayName" BuildDetails="[LabWorkflowParameters.BuildDetails]" BuildNumber="[BuildNumber]" DisplayName="Get Build Location And Build Number" sap:VirtualizedContainerService.HintSize="858,22" Result="[BuildLocation]" SelectedBuild="[SelectedBuildDetail]" />
|
||
|
<If _locID="Activity012" _locAttrData="DisplayName" Condition="[LabWorkflowParameters.BuildDetails.IsTeamSystemBuild = True]" DisplayName="Compute build location needed" sap:VirtualizedContainerService.HintSize="858,208">
|
||
|
<If.Then>
|
||
|
<Assign _locID="Activity013" _locAttrData="DisplayName" DisplayName="Compute build path" sap:VirtualizedContainerService.HintSize="291,100">
|
||
|
<Assign.To>
|
||
|
<OutArgument x:TypeArguments="x:String">[BuildLocation]</OutArgument>
|
||
|
</Assign.To>
|
||
|
<Assign.Value>
|
||
|
<InArgument x:TypeArguments="x:String">[If(LabWorkflowParameters.BuildDetails.Configuration Is Nothing, BuildLocation, If(LabWorkflowParameters.BuildDetails.Configuration.IsEmpty Or (SelectedBuildDetail.Information.GetNodesByType(Microsoft.TeamFoundation.Build.Common.InformationTypes.ConfigurationSummary, True)).Count = 1, BuildLocation, If(LabWorkflowParameters.BuildDetails.Configuration.IsPlatformEmptyOrAnyCpu, BuildLocation + "\" + LabWorkflowParameters.BuildDetails.Configuration.Configuration, BuildLocation + "\" + LabWorkflowParameters.BuildDetails.Configuration.Platform + "\" + LabWorkflowParameters.BuildDetails.Configuration.Configuration)))]</InArgument>
|
||
|
</Assign.Value>
|
||
|
</Assign>
|
||
|
</If.Then>
|
||
|
</If>
|
||
|
<If _locID="Activity014" _locAttrData="DisplayName" Condition="[LabWorkflowParameters.EnvironmentDetails.Disposition = Microsoft.TeamFoundation.Lab.Client.LabEnvironmentDisposition.Stored]" DisplayName="If user selected stored environment" sap:VirtualizedContainerService.HintSize="858,208">
|
||
|
<If.Then>
|
||
|
<Throw _locID="Activity015" _locAttrData="DisplayName, Exception" DisplayName="Indicate error" Exception="[New System.Exception("You have selected an environment that is stored in the library. Select an environment that is deployed on a team project host group.")]" sap:VirtualizedContainerService.HintSize="269,100" />
|
||
|
</If.Then>
|
||
|
</If>
|
||
|
<Assign _locID="Activity016" _locAttrData="DisplayName" DisplayName="Get Lab Environment Uri" sap:VirtualizedContainerService.HintSize="858,22" >
|
||
|
<Assign.To>
|
||
|
<OutArgument x:TypeArguments="x:String">[LabEnvironmentUri]</OutArgument>
|
||
|
</Assign.To>
|
||
|
<Assign.Value>
|
||
|
<InArgument x:TypeArguments="x:String">[LabWorkflowParameters.EnvironmentDetails.LabEnvironmentUri.ToString()]</InArgument>
|
||
|
</Assign.Value>
|
||
|
</Assign>
|
||
|
<mtlwa:GetLabEnvironment _locID="Activity017" _locAttrData="DisplayName" DisplayName="Get Lab Environment" LabEnvironmentUri="[LabEnvironmentUri]" Result="[LabEnvironment]" />
|
||
|
<If _locID="Activity018" _locAttrData="DisplayName" Condition="[LabWorkflowParameters.EnvironmentDetails.RevertToSnapshot = True]" DisplayName=" If Restore Snapshot" sap:VirtualizedContainerService.HintSize="858,316">
|
||
|
<If.Then>
|
||
|
<Sequence _locID="Activity019" _locAttrData="DisplayName" DisplayName="Restore Snapshot" sap:VirtualizedContainerService.HintSize="231,208">
|
||
|
<mtlwa:GetLabEnvironmentSnapshotId _locID="Activity020" _locAttrData="DisplayName" DisplayName="Get Snapshot Details" sap:VirtualizedContainerService.HintSize="200,22" LabEnvironmentUri="[LabEnvironmentUri]" Result="[SnapshotId]" SnapshotName="[LabWorkflowParameters.EnvironmentDetails.SnapshotName]" />
|
||
|
<mtlwa:RestoreLabEnvironment _locID="Activity021" _locAttrData="DisplayName" DisplayName="Restore Lab Environment to Snapshot" sap:VirtualizedContainerService.HintSize="200,22" LabEnvironmentUri="[LabEnvironmentUri]" SnapshotId="[SnapshotId]" />
|
||
|
</Sequence>
|
||
|
</If.Then>
|
||
|
<If.Else>
|
||
|
<Sequence _locID="Activity022" _locAttrData="DisplayName" DisplayName="No Clean Snapshot">
|
||
|
<If _locID="Activity023" _locAttrData="DisplayName" Condition="[Not String.Equals(Microsoft.TeamFoundation.Lab.Client.LabEnvironment.UnmanagedProvider, labEnvironment.LabProvider)]" DisplayName="If Virtual Environment">
|
||
|
<If.Then>
|
||
|
<mtlwa:WriteDeploymentInformation _locID="Activity024" _locAttrData="DisplayName, Message" Url="{x:Null}" DeploymentInformationType="[Microsoft.TeamFoundation.Build.Common.DeploymentInformationTypes.Deploy]" DisplayName="Clean snapshot not specified " sap:VirtualizedContainerService.HintSize="208,208" Message="Build definition did not specify a clean snapshot. It is a best practice to use clean snapshot when running the lab workflow." />
|
||
|
</If.Then>
|
||
|
</If>
|
||
|
</Sequence>
|
||
|
</If.Else>
|
||
|
</If>
|
||
|
<If _locID="Activity025" _locAttrData="DisplayName" Condition="[LabWorkflowParameters.DeploymentDetails.DeploymentNeeded = True or LabWorkflowParameters.TestParameters.RunTest = True]" DisplayName="If deployment or test needed" sap:VirtualizedContainerService.HintSize="858,1214">
|
||
|
<If.Then>
|
||
|
<mtlwa:WaitForEnvironmentReady _locID="Activity026" _locAttrData="DisplayName" DisplayName="Wait For Environment To Be Ready" sap:VirtualizedContainerService.HintSize="711,22" LabEnvironmentUri="[LabEnvironmentUri]" MaxWaitTime="[System.TimeSpan.FromMinutes(10)]" />
|
||
|
</If.Then>
|
||
|
</If>
|
||
|
<If _locID="Activity027" _locAttrData="DisplayName" Condition="[LabWorkflowParameters.DeploymentDetails.DeploymentNeeded = True]" DisplayName="If deployment needed" sap:VirtualizedContainerService.HintSize="858,1214">
|
||
|
<If.Then>
|
||
|
<Sequence _locID="Activity028" _locAttrData="DisplayName" DisplayName="Do deployment" sap:VirtualizedContainerService.HintSize="733,1106">
|
||
|
<mtlwa:ReserveEnvironmentForDeployment _locID="Activity029" _locAttrData="DisplayName" DisplayName="Reserve Environment For Deployment" sap:VirtualizedContainerService.HintSize="711,22" LabEnvironmentUri="[LabEnvironmentUri]" />
|
||
|
<TryCatch _locID="Activity030" _locAttrData="DisplayName" DisplayName="Deploy Build on Environment">
|
||
|
<TryCatch.Try>
|
||
|
<Sequence _locID="Activity031" _locAttrData="DisplayName" DisplayName="Deploying Build">
|
||
|
<ForEach _locID="Activity032" _locAttrData="DisplayName" x:TypeArguments="x:String" DisplayName="Run Deployment scripts" sap:VirtualizedContainerService.HintSize="711,254" Values="[LabWorkflowParameters.DeploymentDetails.Scripts]">
|
||
|
<ActivityAction x:TypeArguments="x:String">
|
||
|
<ActivityAction.Argument>
|
||
|
<DelegateInArgument x:TypeArguments="x:String" Name="deploymentConfigurationPair" />
|
||
|
</ActivityAction.Argument>
|
||
|
<mtlwa:RunDeploymentTask _locID="Activity055" _locAttrData="DisplayName" BuildLocation="[BuildLocation]" DeploymentScriptDetails="[deploymentConfigurationPair]" DisplayName="Run Deployment Task" sap:VirtualizedContainerService.HintSize="200,22" LabEnvironmentUri="[LabEnvironmentUri]" MaxWaitTime="[TimeSpan.FromMinutes(TimeoutForDeploymentScriptInMinutes)]" ThrowOnError="True" UseRoleForDeployment="[LabWorkflowParameters.DeploymentDetails.UseRoleForDeployment]" />
|
||
|
</ActivityAction>
|
||
|
</ForEach>
|
||
|
</Sequence>
|
||
|
</TryCatch.Try>
|
||
|
<TryCatch.Finally>
|
||
|
<mtlwa:ReleaseEnvironmentFromDeployment _locID="Activity035" _locAttrData="DisplayName" DisplayName="Release Environment From Deployment" sap:VirtualizedContainerService.HintSize="711,22" LabEnvironmentUri="[LabEnvironmentUri]" />
|
||
|
</TryCatch.Finally>
|
||
|
</TryCatch>
|
||
|
<mtlwa:WriteDeploymentInformation _locID="Activity036" _locAttrData="DisplayName, Message" DeploymentInformationType="[Microsoft.TeamFoundation.Build.Common.DeploymentInformationTypes.Deploy]" DisplayName="Application Deployment Succeeded" sap:VirtualizedContainerService.HintSize="711,22" Message="[String.Format("The application was deployed successfully from the following build location:")]" Url="[BuildLocation]" />
|
||
|
<If _locID="Activity037" _locAttrData="DisplayName" Condition="[LabWorkflowParameters.DeploymentDetails.TakePostDeploymentSnapshot = True]" DisplayName="Post Deployment Snapshot" sap:VirtualizedContainerService.HintSize="711,626">
|
||
|
<If.Then>
|
||
|
<Sequence _locID="Activity038" _locAttrData="DisplayName" DisplayName="Take Post deployment Snapshot " sap:VirtualizedContainerService.HintSize="486,518">
|
||
|
<Sequence.Variables>
|
||
|
<Variable x:TypeArguments="x:Int64" Name="PostDeploymentSnapshotChainId" />
|
||
|
<Variable x:TypeArguments="x:String" Default="[String.Format("{0}_{1}", BuildDetail.BuildDefinition.Name, BuildDetail.BuildNumber)]" Name="PostDeploymentSnapshotName" />
|
||
|
</Sequence.Variables>
|
||
|
<If _locID="Activity039" _locAttrData="DisplayName" Condition="[String.IsNullOrEmpty(LabWorkflowParameters.DeploymentDetails.PostDeploymentSnapshotName) = False]" DisplayName="Check snapshot name" sap:VirtualizedContainerService.HintSize="464,208">
|
||
|
<If.Then>
|
||
|
<Assign sap:VirtualizedContainerService.HintSize="291,100">
|
||
|
<Assign.To>
|
||
|
<OutArgument x:TypeArguments="x:String">[PostDeploymentSnapshotName]</OutArgument>
|
||
|
</Assign.To>
|
||
|
<Assign.Value>
|
||
|
<InArgument x:TypeArguments="x:String">[If(LabWorkflowParameters.BuildDetails.IsTeamSystemBuild = True,String.Format("{0}_{1}_{2}", LabWorkflowParameters.DeploymentDetails.PostDeploymentSnapshotName, BuildNumber,BuildDetail.BuildNumber),String.Format("{0}_{1}", LabWorkflowParameters.DeploymentDetails.PostDeploymentSnapshotName, BuildDetail.BuildNumber))]</InArgument>
|
||
|
</Assign.Value>
|
||
|
</Assign>
|
||
|
</If.Then>
|
||
|
</If>
|
||
|
<mtlwa:SnapshotLabEnvironment _locID="Activity040" _locAttrData="DisplayName" DisplayName="Taking Post Deployment snapshot" sap:VirtualizedContainerService.HintSize="464,22" LabEnvironmentUri="[LabEnvironmentUri]" SnapshotChainId="[PostDeploymentSnapshotChainId]" SnapshotName="[PostDeploymentSnapshotName]" />
|
||
|
<mtlwa:WriteDeploymentInformation _locID="Activity041" _locAttrData="DisplayName, Message" Url="{x:Null}" DeploymentInformationType="[Microsoft.TeamFoundation.Build.Common.DeploymentInformationTypes.Deploy]" DisplayName="Taking Snapshot succeeded" sap:VirtualizedContainerService.HintSize="464,22" Message="[String.Format("The following snapshot was taken after the deployment was finished: {0}", PostDeploymentSnapshotName)]" />
|
||
|
<mtlwa:WriteDeploymentInformation _locID="Activity042" _locAttrData="DisplayName" DeploymentInformationType="[Microsoft.TeamFoundation.Build.Common.DeploymentInformationTypes.ConnectToSnapshot]" DisplayName="Added connection link to the Snapshot" sap:VirtualizedContainerService.HintSize="464,22" Message="[PostDeploymentSnapshotName]" Url="[PostDeploymentSnapshotChainId.ToString()]" />
|
||
|
</Sequence>
|
||
|
</If.Then>
|
||
|
<If.Else>
|
||
|
<Sequence _locID="Activity043" _locAttrData="DisplayName" DisplayName="No Post Deployment Snapshot">
|
||
|
<If _locID="Activity044" _locAttrData="DisplayName" Condition="[Not String.Equals(Microsoft.TeamFoundation.Lab.Client.LabEnvironment.UnmanagedProvider, labEnvironment.LabProvider)]" DisplayName="If Virtual Environment">
|
||
|
<If.Then>
|
||
|
<mtlwa:WriteDeploymentInformation _locID="Activity045" _locAttrData="DisplayName, Message" Url="{x:Null}" DeploymentInformationType="[Microsoft.TeamFoundation.Build.Common.DeploymentInformationTypes.Deploy]" DisplayName="Post deployment snapshot not specified" sap:VirtualizedContainerService.HintSize="200,518" Message="Build definition did not specify a post deployment snapshot. It is a best practice to take post deployment snapshot when running the lab workflow." />
|
||
|
</If.Then>
|
||
|
</If>
|
||
|
</Sequence>
|
||
|
</If.Else>
|
||
|
</If>
|
||
|
</Sequence>
|
||
|
</If.Then>
|
||
|
</If>
|
||
|
<If _locID="Activity046" _locAttrData="DisplayName" Condition="[LabWorkflowParameters.TestParameters.RunTest = True]" DisplayName="Run Tests on Environment" sap:VirtualizedContainerService.HintSize="858,604">
|
||
|
<If.Then>
|
||
|
<Sequence _locID="Activity047" _locAttrData="DisplayName" DisplayName="Run Tests" sap:VirtualizedContainerService.HintSize="656,498">
|
||
|
<Sequence.Variables>
|
||
|
<Variable x:TypeArguments="mtltc:TestingCapabilityInformation" Name="TestCapabilityInfo" />
|
||
|
<Variable x:TypeArguments="x:String" Name="variable1" />
|
||
|
<Variable x:TypeArguments="mtlwa:TestRunStatistics" Default="[New Microsoft.TeamFoundation.Lab.Workflow.Activities.TestRunStatistics()]" Name="TestResults" />
|
||
|
</Sequence.Variables>
|
||
|
<mtlwa:ExecuteRemoteTestRun2 _locID="Activity048" _locAttrData="DisplayName" MaxWaitTime="{x:Null}" TestEnvironment="{x:Null}" BuildNumber="[BuildNumber]" BuildDefinitionName="[LabWorkflowParameters.BuildDetails.BuildDefinitionName]" DisplayName="Running Tests" sap:VirtualizedContainerService.HintSize="634,22" LabEnvironmentUri="[LabEnvironmentUri]" MaxConsecutiveFailuresToIgnoreDuringWaitForCompletion="[3]" RefreshInterval="[System.TimeSpan.FromMinutes(1)]" Result="[TestResults]" TestDirectory="[BuildLocation]" TestParameters="[LabWorkflowParameters.TestParameters]" Title="[String.Format("{0}", BuildDetail.BuildNumber)]" />
|
||
|
<If _locID="Activity049" _locAttrData="DisplayName" Condition="[TestResults.PassedTests <> TestResults.TotalTests Or TestResults.TestRunStatus <> TestManagement.Client.TestRunState.Completed]" DisplayName="If all tests have not passed" sap:VirtualizedContainerService.HintSize="634,312">
|
||
|
<If.Then>
|
||
|
<If _locID="Activity050" _locAttrData="DisplayName" Condition="[(LabWorkflowParameters.BuildDetails.IsTeamSystemBuild = True AndAlso LabWorkflowParameters.BuildDetails.QueueNewBuild = True) Or (LabWorkflowParameters.DeploymentDetails.DeploymentNeeded = True)]" DisplayName="Set build status" sap:VirtualizedContainerService.HintSize="509,206">
|
||
|
<If.Then>
|
||
|
<Assign _locID="Activity051" _locAttrData="DisplayName" DisplayName="Partially succeeded" sap:VirtualizedContainerService.HintSize="242,100">
|
||
|
<Assign.To>
|
||
|
<OutArgument x:TypeArguments="mtbc:BuildStatus">[BuildStatus]</OutArgument>
|
||
|
</Assign.To>
|
||
|
<Assign.Value>
|
||
|
<InArgument x:TypeArguments="mtbc:BuildStatus">[Microsoft.TeamFoundation.Build.Client.BuildStatus.PartiallySucceeded]</InArgument>
|
||
|
</Assign.Value>
|
||
|
</Assign>
|
||
|
</If.Then>
|
||
|
<If.Else>
|
||
|
<Assign _locID="Activity052" _locAttrData="DisplayName" DisplayName="Failed" sap:VirtualizedContainerService.HintSize="242,100">
|
||
|
<Assign.To>
|
||
|
<OutArgument x:TypeArguments="mtbc:BuildStatus">[BuildStatus]</OutArgument>
|
||
|
</Assign.To>
|
||
|
<Assign.Value>
|
||
|
<InArgument x:TypeArguments="mtbc:BuildStatus">[Microsoft.TeamFoundation.Build.Client.BuildStatus.Failed]</InArgument>
|
||
|
</Assign.Value>
|
||
|
</Assign>
|
||
|
</If.Else>
|
||
|
</If>
|
||
|
</If.Then>
|
||
|
</If>
|
||
|
</Sequence>
|
||
|
</If.Then>
|
||
|
</If>
|
||
|
<mtbwa:SetBuildProperties _locID="Activity053" _locAttrData="DisplayName" DisplayName="Set build status" sap:VirtualizedContainerService.HintSize="858,22" PropertiesToSet="Status" Status="[BuildStatus]" />
|
||
|
</Sequence>
|
||
|
</Activity>
|