From 00e0dbdcb1ed8db22b29182d6fbe170199ac7c21 Mon Sep 17 00:00:00 2001 From: Billy O'Neal Date: Wed, 17 Jun 2020 21:31:30 -0700 Subject: [PATCH] [vcpkg] Clean tombstones in every build except PR validations (#12000) --- scripts/azure-pipelines/azure-pipelines.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/azure-pipelines/azure-pipelines.yml b/scripts/azure-pipelines/azure-pipelines.yml index 9379e06a06..f729b3ee7a 100644 --- a/scripts/azure-pipelines/azure-pipelines.yml +++ b/scripts/azure-pipelines/azure-pipelines.yml @@ -4,7 +4,7 @@ variables: windows-pool: 'PrWin-2020-06-04' linux-pool: 'PrLin-2020-06-08' - delete-tombstones-first: false + delete-tombstones-first: ${{ ne(variables['Build.Reason'], 'PullRequest') }} stages: - stage: delete_tombstones @@ -13,7 +13,7 @@ stages: - job: windows displayName: 'Clean Windows Tombstones' pool: $(windows-pool) - condition: eq(variables['delete-tombstones-first'], 'true') + condition: ${{ variables['delete-tombstones-first'] }} steps: - task: PowerShell@2 displayName: 'Initialize Environment' @@ -24,13 +24,13 @@ stages: - job: linux displayName: 'Clean Linux Tombstones' pool: $(linux-pool) - condition: eq(variables['delete-tombstones-first'], 'true') + condition: ${{ variables['delete-tombstones-first'] }} steps: - bash: rm -rf /archives/fail displayName: 'Delete /archives/fail' - job: osx displayName: 'Clean MacOS Tombstones' - condition: eq(variables['delete-tombstones-first'], 'true') + condition: ${{ variables['delete-tombstones-first'] }} pool: name: vcpkgAgentPool demands: Agent.OS -equals Darwin