mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 03:34:26 +08:00
[vcpkg] Clean tombstones in every build except PR validations (#12000)
This commit is contained in:
parent
7960648b4d
commit
00e0dbdcb1
@ -4,7 +4,7 @@
|
|||||||
variables:
|
variables:
|
||||||
windows-pool: 'PrWin-2020-06-04'
|
windows-pool: 'PrWin-2020-06-04'
|
||||||
linux-pool: 'PrLin-2020-06-08'
|
linux-pool: 'PrLin-2020-06-08'
|
||||||
delete-tombstones-first: false
|
delete-tombstones-first: ${{ ne(variables['Build.Reason'], 'PullRequest') }}
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- stage: delete_tombstones
|
- stage: delete_tombstones
|
||||||
@ -13,7 +13,7 @@ stages:
|
|||||||
- job: windows
|
- job: windows
|
||||||
displayName: 'Clean Windows Tombstones'
|
displayName: 'Clean Windows Tombstones'
|
||||||
pool: $(windows-pool)
|
pool: $(windows-pool)
|
||||||
condition: eq(variables['delete-tombstones-first'], 'true')
|
condition: ${{ variables['delete-tombstones-first'] }}
|
||||||
steps:
|
steps:
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: 'Initialize Environment'
|
displayName: 'Initialize Environment'
|
||||||
@ -24,13 +24,13 @@ stages:
|
|||||||
- job: linux
|
- job: linux
|
||||||
displayName: 'Clean Linux Tombstones'
|
displayName: 'Clean Linux Tombstones'
|
||||||
pool: $(linux-pool)
|
pool: $(linux-pool)
|
||||||
condition: eq(variables['delete-tombstones-first'], 'true')
|
condition: ${{ variables['delete-tombstones-first'] }}
|
||||||
steps:
|
steps:
|
||||||
- bash: rm -rf /archives/fail
|
- bash: rm -rf /archives/fail
|
||||||
displayName: 'Delete /archives/fail'
|
displayName: 'Delete /archives/fail'
|
||||||
- job: osx
|
- job: osx
|
||||||
displayName: 'Clean MacOS Tombstones'
|
displayName: 'Clean MacOS Tombstones'
|
||||||
condition: eq(variables['delete-tombstones-first'], 'true')
|
condition: ${{ variables['delete-tombstones-first'] }}
|
||||||
pool:
|
pool:
|
||||||
name: vcpkgAgentPool
|
name: vcpkgAgentPool
|
||||||
demands: Agent.OS -equals Darwin
|
demands: Agent.OS -equals Darwin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user