docker-playground/ttcn3-gbproxy-test-fr
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
..
GBProxy_Tests.cfg osmo-gbproxy: fix configuration 2021-01-21 20:54:18 +01:00
jenkins.sh jenkins-common.sh: add common clean up trap 2021-02-26 09:32:06 +01:00
netdev-to-docker.sh Add ttcn3-gbproxy-test-fr for FR related testing 2020-11-30 15:50:31 +01:00
osmo-gbproxy.cfg gbproxy: update sns configuration to use ip-sns-bind 2021-02-16 21:24:29 +01:00