laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ci/+/40345?usp=email )
Change subject: jobs/ttcn3-testsuites-testenv: no rm on error
......................................................................
jobs/ttcn3-testsuites-testenv: no rm on error
Do not delete the cache dir if testenv returns with error, so we can
inspect it. Keep the linux kernel too, it doesn't make much of a size
difference and makes the code slightly simpler.
Change-Id: Icdd84204253ff94ac650fbeb2b3ad74e16d89dd4
---
M jobs/ttcn3-testsuites-testenv.yml
1 file changed, 3 insertions(+), 1 deletion(-)
Approvals:
pespin: Looks good to me, but someone else must approve
laforge: Looks good to me, approved
Jenkins Builder: Verified
diff --git a/jobs/ttcn3-testsuites-testenv.yml b/jobs/ttcn3-testsuites-testenv.yml
index 0596321..dc5892b 100644
--- a/jobs/ttcn3-testsuites-testenv.yml
+++ b/jobs/ttcn3-testsuites-testenv.yml
@@ -597,7 +597,9 @@
# Free up space from downloaded apt packages, build artifacts etc.
# The osmo-ttcn3-hacks deps dir and ccache are persistent.
- rm -rf _cache .linux
+ if [ "$RC" = 0 ]; then
+ rm -rf _cache .linux
+ fi
uptime | grep --color=always -o "load.*"
exit $RC
--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/40345?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: Icdd84204253ff94ac650fbeb2b3ad74e16d89dd4
Gerrit-Change-Number: 40345
Gerrit-PatchSet: 3
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>