Fix to run all the tests for the scheduled builds, as intended (#61029)
authorAnkit Jain <radical@gmail.com>
Sat, 30 Oct 2021 08:09:57 +0000 (08:09 +0000)
committerGitHub <noreply@github.com>
Sat, 30 Oct 2021 08:09:57 +0000 (04:09 -0400)
eng/pipelines/common/xplat-setup.yml

index 85c27e6..c804309 100644 (file)
@@ -22,6 +22,7 @@ jobs:
     shouldContinueOnError: ${{ and(endsWith(variables['Build.DefinitionName'], 'staging'), eq(variables['Build.Reason'], 'PullRequest')) }}
 
     # keep in sync with /eng/pipelines/common/variables.yml
+    nonPRBuild: ${{ and(eq(variables['System.TeamProject'], 'public'), ne(variables['Build.Reason'], 'PullRequest')) }}
     dependOnEvaluatePaths: ${{ and(eq(variables['Build.Reason'], 'PullRequest'), in(variables['Build.DefinitionName'], 'runtime', 'runtime-staging', 'runtime-community')) }}
 
     variables:
@@ -47,11 +48,11 @@ jobs:
 
       - name: _BuildConfig
         value: $(buildConfigUpper)
-      
+
       - name: _runSmokeTestsOnlyArg
-        ${{ if ne(parameters.variables['isFullMatrix'], true) }}:
+        ${{ if ne(variables['nonPRBuild'], true) }}:
           value: /p:RunSmokeTestsOnly=true
-        ${{ if eq(parameters.variables['isFullMatrix'], true) }}:
+        ${{ if eq(variables['nonPRBuild'], true) }}:
           value: ''
 
       - ${{ if or(eq(parameters.osGroup, 'windows'), eq(parameters.hostedOs, 'windows')) }}: