From 29e4f7c4547439ac4562e3894df244a9a0d392bf Mon Sep 17 00:00:00 2001 From: Andy Gocke Date: Mon, 11 May 2026 20:45:28 +0000 Subject: [PATCH] Make sccache cache task non-fatal The Cache@2 task for sccache can fail when the disk runs out of space during the post-job cache upload. This is purely a performance optimization, so a failure should not fail the entire build. Add continueOnError: true so the task reports a warning instead of an error on failure. Fixes #128051 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- eng/pipelines/coreclr/templates/setup-sccache.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/eng/pipelines/coreclr/templates/setup-sccache.yml b/eng/pipelines/coreclr/templates/setup-sccache.yml index e916ee44cbe4af..dc8ba9a0c04aae 100644 --- a/eng/pipelines/coreclr/templates/setup-sccache.yml +++ b/eng/pipelines/coreclr/templates/setup-sccache.yml @@ -28,6 +28,7 @@ steps: # builds warm-start from rolling-build caches saved in the main scope. - task: Cache@2 displayName: Sccache cache + continueOnError: true inputs: key: sccache | ${{ parameters.osGroup }} | ${{ parameters.archType }} | ${{ parameters.nameSuffix }} | "$(Build.BuildId)" path: $(Pipeline.Workspace)/.sccache