Run tests only on public builds and scheduled or manual official builds (dotnet/coref...
authorSantiago Fernandez Madero <safern@microsoft.com>
Wed, 1 May 2019 11:05:24 +0000 (04:05 -0700)
committerViktor Hofer <viktor.hofer@microsoft.com>
Wed, 1 May 2019 11:05:24 +0000 (13:05 +0200)
Commit migrated from https://github.com/dotnet/corefx/commit/1f9db60c79e7c4f04fa346f751024ec8684ce64c

eng/pipelines/libraries/corefx-base.yml
eng/pipelines/libraries/helix.yml

index 67a02a0..3989322 100644 (file)
@@ -189,6 +189,8 @@ jobs:
 
             - template: /eng/pipelines/helix.yml
               parameters:
+                # send tests to helix only on public builds, official scheduled builds or manual official builds.
+                condition: ${{ or(eq(parameters.isOfficialBuild, 'false'), notIn(variables['Build.Reason'], 'BatchedCI', 'IndividualCI')) }}
                 targetOS: ${{ parameters.targetOS }}
                 archGroup: $(_architecture)
                 configuration: $(_BuildConfig)
index b6395d2..a1f478c 100644 (file)
@@ -12,6 +12,7 @@ parameters:
   officialBuildId: ''
   enableAzurePipelinesReporter: '' # true | false
   outerloop: '' # true | false
+  condition: always()
 
 steps:
   - script: ${{ parameters.msbuildScript }}
@@ -32,5 +33,6 @@ steps:
             /p:EnableAzurePipelinesReporter=${{ parameters.enableAzurePipelinesReporter }}
             /bl:$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/SendToHelix.binlog
     displayName: Send to Helix
+    condition: ${{ parameters.condition }}
     env:
       SYSTEM_ACCESSTOKEN: $(System.AccessToken) # We need to set this env var to publish helix results to Azure Dev Ops