osmith has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-ci/+/37520?usp=email )

Change subject: jobs/osmocom-build-tags…: fix workspace clean
......................................................................

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(-)

Approvals:
  pespin: Looks good to me, but someone else must approve
  Jenkins Builder: Verified
  fixeria: Looks good to me, approved




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 https://gerrit.osmocom.org/c/osmo-ci/+/37520?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

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

Reply via email to