summaryrefslogtreecommitdiff
path: root/.azure-pipelines.yml
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2025-11-03 16:12:14 -0600
committerTom Rini <[email protected]>2025-11-06 08:30:00 -0600
commit59f6025e5a6e46c9cf8b94cd6958bae78cd15d13 (patch)
treebcfcd3882ad7126f2e95da677439adad02fe6496 /.azure-pipelines.yml
parent32ead3c1bada6501a3d34ac7c0a7088cd6bcfbd2 (diff)
Azure: Ensure we do a shallow git clone
In Azure, older pipelines such as ours do not default to a shallow fetch but rather do a complete clone. This introduces a marginal time increase in each task, but also more importantly takes up significant disk space. We are now getting warnings in some cases about using more than 95% of our available disk space so take this as a first easy step to resolve that problem. Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to '.azure-pipelines.yml')
-rw-r--r--.azure-pipelines.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml
index c4a2504491c..3b684ec73ba 100644
--- a/.azure-pipelines.yml
+++ b/.azure-pipelines.yml
@@ -3,6 +3,8 @@ variables:
ubuntu_vm: ubuntu-24.04
macos_vm: macOS-14
ci_runner_image: trini/u-boot-gitlab-ci-runner:jammy-20251001-04Nov2025
+ # Ensure we do a shallow clone
+ Agent.Source.Git.ShallowFetchDepth: 1
# Add '-u 0' options for Azure pipelines, otherwise we get "permission
# denied" error when it tries to "useradd -m -u 1001 vsts_azpcontainer",
# since our $(ci_runner_image) user is not root.