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