From 4b41d1b8f6cb81c12a5fd3e73df96d9efbe3eab8 Mon Sep 17 00:00:00 2001
From: Jamie Magee <JamieMagee@users.noreply.github.com>
Date: Sun, 17 Nov 2019 16:39:13 +0100
Subject: [PATCH] chore(ci): use stable cache task (#4819)

The public documentation hasn't been updated, but the task is available. See [here](https://github.com/microsoft/azure-pipelines-tasks/tree/master/Tasks/CacheV2).

Fixes #4757
---
 .azure/steps.yml    | 6 ++----
 azure-pipelines.yml | 1 -
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/.azure/steps.yml b/.azure/steps.yml
index 28281f8492..f2467bd17c 100644
--- a/.azure/steps.yml
+++ b/.azure/steps.yml
@@ -26,20 +26,18 @@ steps:
     fetchDepth: 5
     path: renovate
 
-  - task: CacheBeta@0
+  - task: Cache@2
     inputs:
       key: yarn_cache | $(Agent.OS) | $(Build.SourcesDirectory)/yarn.lock
       path: $(YARN_CACHE_FOLDER)
     displayName: Cache Yarn packages
     continueOnError: true
 
-  # does not work on linux or mac :-(
-  - task: CacheBeta@0
+  - task: Cache@2
     inputs:
       key: yarn | "$(nodeVersion)" | $(Agent.OS) | $(Build.SourcesDirectory)/yarn.lock
       path: $(Build.SourcesDirectory)/node_modules
     displayName: Cache node_modules
-    condition: eq(variables['Agent.OS'], 'Windows_NT')
     continueOnError: true
 
   - bash: |
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 7bd9db2452..5ca36a07a7 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -12,7 +12,6 @@ pr:
 variables:
   YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn
   CI: true
-  AZP_CACHING_TAR: true
 
 jobs:
   - job: 'Windows'
-- 
GitLab