Commit 458700c
ci: clean up agent disk space before binary build (release/v1.7) (#4433)
* ci: clean up agent disk space before binary build
Adds a reusable steps template that frees disk space on the build
agent (removing hostedtoolcache, dotnet, android, chromium, etc.)
before the binary build runs. The binary build has been hitting
disk-pressure failures on the default build pool.
The cleanup script mirrors the one introduced for container builds
in #4109 and is now factored into a shared template
(.pipelines/templates/disk-cleanup.steps.yaml) for reuse.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* ci: use shared disk-cleanup template in container build
Replace the inline disk-cleanup script in
.pipelines/containers/container-template.yaml with a reference to
the shared template at .pipelines/templates/disk-cleanup.steps.yaml
(introduced in this PR). Behavior is unchanged.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* ci: preserve /opt/hostedtoolcache during disk cleanup
Keep the hosted toolcache (which contains Go) so subsequent steps can
use the agent's pre-installed Go toolchain.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 7478ace commit 458700c
3 files changed
Lines changed: 30 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 16 | + | |
38 | 17 | | |
39 | 18 | | |
40 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
0 commit comments