From 474c6f732212eb5168d1dc2c92b70c8e616a3221 Mon Sep 17 00:00:00 2001 From: "Dustin L. Howett" Date: Fri, 27 Sep 2024 04:39:42 -0500 Subject: [PATCH] [Build]reintroduce variables.EnablePipelineCache (#35087) * build: reintroduce variables.EnablePipelineCache --- .pipelines/v2/ci.yml | 2 +- .pipelines/v2/templates/pipeline-ci-build.yml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.pipelines/v2/ci.yml b/.pipelines/v2/ci.yml index 5e7bf26676..268bea7d11 100644 --- a/.pipelines/v2/ci.yml +++ b/.pipelines/v2/ci.yml @@ -32,7 +32,7 @@ parameters: - name: enableMsBuildCaching type: boolean displayName: "Enable MSBuild Caching" - default: false + default: true - name: runTests type: boolean displayName: "Run Tests" diff --git a/.pipelines/v2/templates/pipeline-ci-build.yml b/.pipelines/v2/templates/pipeline-ci-build.yml index 73a3ff766d..17f4654ccd 100644 --- a/.pipelines/v2/templates/pipeline-ci-build.yml +++ b/.pipelines/v2/templates/pipeline-ci-build.yml @@ -3,6 +3,9 @@ variables: value: false - name: EnablePipelineCache value: true + - ${{ if eq(parameters.enableMsBuildCaching, true) }}: + - name: EnablePipelineCache + value: true parameters: - name: buildPlatforms