osmith submitted this change.

View Change


Approvals: pespin: Looks good to me, but someone else must approve Jenkins Builder: Verified fixeria: Looks good to me, approved
jobs/osmocom-build-tags…: fix workspace clean

As this job tries to archive the build logs after running, don't remove
the entire workspace. Instead remove the paths that take up the most
space, which are the one with the git clones and build artifacts (_deps)
as well as the one with the temporary installation dirs (_temp/_inst*).

Fixes: b20e8e8b ("jobs/various: clean workspace on success")
Change-Id: Ied86ba80b38a9b10a7a96631e6dedee9f3762c3b
---
M jobs/osmocom-build-tags-against-master.yml
1 file changed, 19 insertions(+), 2 deletions(-)

diff --git a/jobs/osmocom-build-tags-against-master.yml b/jobs/osmocom-build-tags-against-master.yml
index 8ae4a63..b242103 100644
--- a/jobs/osmocom-build-tags-against-master.yml
+++ b/jobs/osmocom-build-tags-against-master.yml
@@ -33,8 +33,10 @@
"$USER/debian-bookworm-build" \
scripts/osmocom-build-old-tags-against-master.sh

- # Remove workspace on success to free up space
- rm -rf "$WORKSPACE"
+ # Remove git repos and build results on success to free up space
+ # Logs are kept
+ rm -rf "$WORKSPACE"/_deps
+ rm -rf "$WORKSPACE"/_temp/_inst*
scm:
- git:
branches:

To view, visit change 37520. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: Ied86ba80b38a9b10a7a96631e6dedee9f3762c3b
Gerrit-Change-Number: 37520
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: osmith <osmith@sysmocom.de>
Gerrit-Reviewer: pespin <pespin@sysmocom.de>
Gerrit-MessageType: merged