docker-playground/ttcn3-bts-test
Oliver Smith 12b961942a jenkins-common.sh: add common clean up trap
Add set_clean_up_trap() in jenkins-common.sh and run it at the beginning
of the jenkins.sh files. Move the common clean up code from the end of
every jenkins.sh file into clean_up_common(), which gets called by the
trap. Add a custom clean_up() function to those jenkins.sh files that
need additional clean up.

Replace explicit container stop commands (for containers attached to the
docker network) with one call to network_clean() in clean_up_common(). It
kills all containers attached to the docker network.

The motivation for this change is the upcoming optional build of initrd
and kernel during ttcn3-ggsn-test/jenkins.sh. After building these, a
short smoke test will be performed to make sure we can boot the kernel
and initrd, before continuing to run the entire testsuite against it. If
building or the smoke test fails, we must do a proper clean up of the
network and fix permissions.

Related: OS#3208
Change-Id: I807c6221d22fec31db23e2516e477a3eb43347fb
2021-02-26 09:32:06 +01:00
..
fh ttcn3-bts-test/fh: do not configure CBCH slots statically 2020-09-12 20:16:31 +07:00
oml ttcn3-bts-test/osmo-bts.cfg: use logging level 'notice' by default 2020-07-06 03:35:09 +07:00
virtphy ttcn3-bts-test/osmo-bts.cfg: use logging level 'notice' by default 2020-07-06 03:35:09 +07:00
.release Add osmo-bts-test + dependencies 2018-03-01 15:19:49 +00:00
BTS_Tests.cfg ttcn3-bts-test/BTS_Tests.cfg: configure number of transceivers 2020-06-22 18:17:00 +07:00
Dockerfile ttcn3: use REGISTRY arg with debian-stretch-titan 2021-02-11 16:27:23 +01:00
Makefile Add osmo-bts-test + dependencies 2018-03-01 15:19:49 +00:00
jenkins.sh jenkins-common.sh: add common clean up trap 2021-02-26 09:32:06 +01:00
osmo-bsc.cfg ttcn3-bts-test/osmo-bsc.cfg: do not enable CBCH slots by default 2020-07-31 05:02:17 +07:00
osmo-bts.cfg ttcn3-bts: Enable gsmtap sapi for tch in osmo-bts.cfg 2020-10-21 11:55:19 +00:00