Skip to content

Commit ea0cf22

Browse files
agockeCopilot
andauthored
Make sccache cache task non-fatal (#128052)
> [!NOTE] > This PR was created with Copilot assistance. The `Cache@2` task for sccache can fail when the disk runs out of space during the post-job cache upload (see [build log](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1416149&view=logs&jobId=826908f3-d824-5a25-6bc6-d6f6821a85ed&j=826908f3-d824-5a25-6bc6-d6f6821a85ed&t=8d9c03b3-2d45-45ba-b13a-b97de665fc76)). Since this is purely a performance optimization, a failure should not fail the entire build. This adds `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>
1 parent 3caa97a commit ea0cf22

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

eng/pipelines/coreclr/templates/setup-sccache.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ steps:
2828
# builds warm-start from rolling-build caches saved in the main scope.
2929
- task: Cache@2
3030
displayName: Sccache cache
31+
continueOnError: true
3132
inputs:
3233
key: sccache | ${{ parameters.osGroup }} | ${{ parameters.archType }} | ${{ parameters.nameSuffix }} | "$(Build.BuildId)"
3334
path: $(Pipeline.Workspace)/.sccache

0 commit comments

Comments
 (0)