osmith submitted this change.

View Change

Approvals: Jenkins Builder: Verified fixeria: Looks good to me, approved
5gc,hss,pcrf: remove mongodb when done

Fix that each of these jobs leaves a "db" directory in the logs dir,
that is the whole mongodb database. In case of 5gc it is 300 MiB in
size, which with daily job runs quickly turns into several GiB on the
jenkins server where build artifacts are stored.

Example db dir:
https://jenkins.osmocom.org/jenkins/job/ttcn3-5gc-test-ogs/ws/logs/db/db/

Change-Id: I0f6ebaa45e1cada1e1141c127999db6f181ee066
---
M 5gc/testenv.cfg
M hss/testenv_open5gs.cfg
M pcrf/testenv.cfg
3 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/5gc/testenv.cfg b/5gc/testenv.cfg
index 2008d9a..27199cb 100644
--- a/5gc/testenv.cfg
+++ b/5gc/testenv.cfg
@@ -7,6 +7,7 @@

[db]
prepare=mkdir db
+clean=rm -rf db
program=mongod --config mongod.conf
setup=create_test_subscribers.sh
copy=mongod.conf
diff --git a/hss/testenv_open5gs.cfg b/hss/testenv_open5gs.cfg
index 79ccede..79b6ec3 100644
--- a/hss/testenv_open5gs.cfg
+++ b/hss/testenv_open5gs.cfg
@@ -4,6 +4,7 @@

[db]
prepare=mkdir db
+clean=rm -rf db
program=mongod --config mongod.conf
setup=create_test_subscribers.sh
copy=mongod.conf
diff --git a/pcrf/testenv.cfg b/pcrf/testenv.cfg
index 221e4a9..487f618 100644
--- a/pcrf/testenv.cfg
+++ b/pcrf/testenv.cfg
@@ -4,6 +4,7 @@

[db]
prepare=mkdir db
+clean=rm -rf db
program=mongod --config mongod.conf
setup=create_test_subscribers.sh
copy=mongod.conf

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

Gerrit-MessageType: merged
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I0f6ebaa45e1cada1e1141c127999db6f181ee066
Gerrit-Change-Number: 43901
Gerrit-PatchSet: 3
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>