Split official build tests results type and print mc url (dotnet/corefx#34371)
authorSantiago Fernandez Madero <safern@microsoft.com>
Fri, 4 Jan 2019 22:19:31 +0000 (14:19 -0800)
committerGitHub <noreply@github.com>
Fri, 4 Jan 2019 22:19:31 +0000 (14:19 -0800)
Commit migrated from https://github.com/dotnet/corefx/commit/579dcb0ec20aed31e2cd9e172eb278543d3935be

eng/sendtohelix.proj

index b8ab28d..1b69149 100644 (file)
@@ -4,14 +4,12 @@
     <HelixSourcePrefix>pr/</HelixSourcePrefix>
     <HelixSourcePrefix Condition="'$(OfficialBuildId)' != ''">official/</HelixSourcePrefix>
     <HelixSource Condition="'$(HelixSource)' == ''">$(HelixSourcePrefix)dotnet/corefx</HelixSource>
-    <HelixSource Condition="'$(BUILD_SOURCEBRANCH)' != ''">$(HelixSource)/$(BUILD_SOURCEBRANCH)</HelixSource>
+    <HelixSource Condition="'$(BUILD_SOURCEBRANCH)' != ''">$(HelixSource)/$(BUILD_SOURCEBRANCH)/</HelixSource>
     
     <!-- Set helix build to build number if available -->
     <HelixBuild Condition="'$(HelixBuild)' == ''">$(BUILD_BUILDNUMBER)</HelixBuild>
     <HelixBuild Condition="'$(HelixBuild)' == ''">default</HelixBuild>
 
-    <HelixType Condition="'$(HelixType)' == ''">test/functional/cli</HelixType>
-
     <TimeoutInSeconds Condition="'$(TimeoutInSeconds)' == ''">600</TimeoutInSeconds>
     <_timeoutSpan>$([System.TimeSpan]::FromSeconds($(TimeoutInSeconds)))</_timeoutSpan>
     
     <TestRunNamePrefix>$(BuildConfiguration)-</TestRunNamePrefix>
   </PropertyGroup>
 
+  <PropertyGroup Condition="'$(HelixType)' == ''">
+    <!-- For PRs we want helixtype to be the same for all frameworks -->
+    <HelixType>test/functional/cli/</HelixType>
+    <HelixType Condition="'$(TargetGroup)' == 'netfx' AND '$(OfficialBuildId)' != ''">test/functional/desktop/cli/</HelixType>
+    <HelixType Condition="'$(TargetGroup)' == 'uap' AND '$(OfficialBuildId)' != ''">test/functional/uwp/cli/</HelixType>
+    <HelixType Condition="'$(TargetGroup)' == 'uapaot' AND '$(OfficialBuildId)' != ''">test/functional/ilc/</HelixType>
+  </PropertyGroup>
+
   <PropertyGroup Condition="'$(MaxRetryCount)' == ''">
     <!-- In Windows we need a higher value due to some flakyness in Nano. Can remove when helix provides new containers model -->
     <MaxRetryCount Condition="'$(TargetsWindows)' == 'true'">9</MaxRetryCount>
         <Timeout>$(_timeoutSpan)</Timeout>
       </HelixWorkItem>
     </ItemGroup>
-
   </Target>
 
+  <Target Name="ShowMissionControlUrl"
+          AfterTargets="StartTestRuns"
+          Condition="'$(OfficialBuildId)' != ''">
+    <PropertyGroup>
+      <_McUser>dotnet-mc-bot-2</_McUser>
+      <_McHelixType>$([System.String]::Copy('$(HelixType)').ToLowerInvariant().Replace('/', '~2F'))</_McHelixType>
+      <_McHelixSource>$([System.String]::Copy('$(HelixSource)').ToLowerInvariant().Replace('/', '~2F'))</_McHelixSource>
+      <_McUrl>https://mc.dot.net/#/user/$(_McUser)/$(_McHelixSource)/$(_McHelixType)/$(OfficialBuildId)</_McUrl>
+    </PropertyGroup>
+
+    <Message Importance="High" Text="Results will be available at $(_McUrl)" />
+  </Target>
 </Project>