diff --git a/eng/pipelines/templates/jobs/vmr-build.yml b/eng/pipelines/templates/jobs/vmr-build.yml index 1c0ba7b4e..c4783027c 100644 --- a/eng/pipelines/templates/jobs/vmr-build.yml +++ b/eng/pipelines/templates/jobs/vmr-build.yml @@ -365,7 +365,8 @@ jobs: displayName: Build # Only run tests if enabled - - ${{ if eq(parameters.runTests, 'True') }}: + # TODO: Remove the PullRequest condition after the next re-bootstrap: https://github.com/dotnet/source-build/issues/4362 + - ${{ if and(eq(parameters.runTests, 'True'), eq(variables['Build.Reason'], 'PullRequest')) }}: - script: | set -ex