From de50ce84ec3fb9bbb9c8231f650cf976a4af207f Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Mon, 6 May 2024 20:15:16 +0200 Subject: [PATCH] Disable VMR runtests outside of PRs to unblock re-boostrap (#19683) --- eng/pipelines/templates/jobs/vmr-build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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