Add timeoutInMinutes: 10 to Vcpkg Cache (#1792)

* Add timeoutInMinutes: 10 to Vcpkg Cache

* Add comment about Vcpkg Cache timeout
This commit is contained in:
Daniel Jurek 2021-03-08 15:46:38 -08:00 committed by GitHub
parent 41a3b4c429
commit 272c229071
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,6 +24,9 @@ steps:
not(eq(variables['${{ parameters.DependenciesVariableName }}'], ''))
)
# This task times out after 10 minutes. An analysis of a subset of Vcpkg Cache
# runs showed that after 10 minutes the cache step is very unlikely to
# succeed.
- task: Cache@2
inputs:
key: >-
@ -34,6 +37,7 @@ steps:
path: $(VCPKG_INSTALLATION_ROOT)
cacheHitVar: VcpkgRestoredFromCache
displayName: Vcpkg Cache
timeoutInMinutes: 10
condition: >-
and(
succeeded(),