*/jenkins.sh: set -e after setting clean up trap

Abort the script and trigger the clean up script, whenever any of the
commands below to prepare the testsuite are failing. This saves time
with figuring out why suddenly all or most tests are failing, and avoids
running the entire testsuite on jenkins if it's obviously not going to
work.

Related: OS#3208
Change-Id: Ie68da2affda8c96b3a515a857a921a05f1bf8ef7
changes/02/23002/4
Oliver Smith 2 years ago
parent 12b961942a
commit 033c6ab1be
  1. 1
      nplab-m3ua-test/jenkins.sh
  2. 1
      nplab-sua-test/jenkins.sh
  3. 1
      osmo-gsm-tester/jenkins.sh
  4. 1
      ttcn3-bsc-test/jenkins-sccplite.sh
  5. 1
      ttcn3-bsc-test/jenkins.sh
  6. 1
      ttcn3-bscnat-test/jenkins.sh
  7. 1
      ttcn3-bts-test/jenkins.sh
  8. 1
      ttcn3-cbc-test/jenkins.sh
  9. 1
      ttcn3-fr-test/jenkins.sh
  10. 1
      ttcn3-gbproxy-test-fr/jenkins.sh
  11. 1
      ttcn3-gbproxy-test/jenkins.sh
  12. 1
      ttcn3-ggsn-test/jenkins.sh
  13. 1
      ttcn3-hlr-test/jenkins.sh
  14. 1
      ttcn3-mgw-test/jenkins.sh
  15. 1
      ttcn3-msc-test/jenkins.sh
  16. 1
      ttcn3-nitb-sysinfo/jenkins.sh
  17. 1
      ttcn3-pcu-test/jenkins-sns.sh
  18. 1
      ttcn3-pcu-test/jenkins.sh
  19. 1
      ttcn3-remsim-test/jenkins.sh
  20. 1
      ttcn3-sccp-test/jenkins.sh
  21. 1
      ttcn3-sgsn-test/jenkins.sh
  22. 1
      ttcn3-sip-test/jenkins.sh
  23. 1
      ttcn3-smlc-test/jenkins.sh
  24. 1
      ttcn3-stp-test/jenkins.sh

@ -10,6 +10,7 @@ docker_images_require \
"nplab-m3ua-test"
set_clean_up_trap
set -e
mkdir $VOL_BASE_DIR/m3ua-tester
cp m3ua-param-testtool.scm all-sgp-tests.txt $VOL_BASE_DIR/m3ua-tester/

@ -10,6 +10,7 @@ docker_images_require \
"nplab-sua-test"
set_clean_up_trap
set -e
mkdir $VOL_BASE_DIR/sua-tester
cp sua-param-testtool-sgp.scm some-sua-sgp-tests.txt $VOL_BASE_DIR/sua-tester/

@ -59,6 +59,7 @@ docker_images_require \
"osmo-gsm-tester"
set_clean_up_trap
set -e
SUBNET=50
network_create $SUBNET

@ -8,6 +8,7 @@ docker_images_require \
"ttcn3-bsc-test"
set_clean_up_trap
set -e
#Make sure NET_NAME doesn't clash with the AoIP BSC test
NET_NAME=ttcn3-bsc_sccplite-test

@ -9,6 +9,7 @@ docker_images_require \
"ttcn3-bsc-test"
set_clean_up_trap
set -e
mkdir $VOL_BASE_DIR/bsc-tester
cp BSC_Tests.cfg $VOL_BASE_DIR/bsc-tester/

@ -7,6 +7,7 @@ docker_images_require \
"ttcn3-bscnat-test"
set_clean_up_trap
set -e
mkdir $VOL_BASE_DIR/bscnat-tester
cp BSCNAT_Tests.cfg $VOL_BASE_DIR/bscnat-tester/

@ -10,6 +10,7 @@ docker_images_require \
"ttcn3-bts-test"
set_clean_up_trap
set -e
clean_up() {
# append ':hopping' to the classnames,

@ -7,6 +7,7 @@ docker_images_require \
"ttcn3-cbc-test"
set_clean_up_trap
set -e
mkdir $VOL_BASE_DIR/cbc-tester
cp CBC_Tests.cfg $VOL_BASE_DIR/cbc-tester/

@ -6,6 +6,7 @@ docker_images_require \
"ttcn3-fr-test"
set_clean_up_trap
set -e
SUBNET=26
network_create $SUBNET

@ -20,6 +20,7 @@ docker_images_require \
"ttcn3-gbproxy-test"
set_clean_up_trap
set -e
SUBNET=25
network_create $SUBNET

@ -7,6 +7,7 @@ docker_images_require \
"ttcn3-gbproxy-test"
set_clean_up_trap
set -e
SUBNET=24
network_create $SUBNET

@ -7,6 +7,7 @@ docker_images_require \
"ttcn3-ggsn-test"
set_clean_up_trap
set -e
mkdir $VOL_BASE_DIR/ggsn-tester
cp GGSN_Tests.cfg $VOL_BASE_DIR/ggsn-tester/

@ -7,6 +7,7 @@ docker_images_require \
"ttcn3-hlr-test"
set_clean_up_trap
set -e
SUBNET=10
network_create $SUBNET

@ -7,6 +7,7 @@ docker_images_require \
"ttcn3-mgw-test"
set_clean_up_trap
set -e
mkdir $VOL_BASE_DIR/mgw-tester
cp MGCP_Test.cfg $VOL_BASE_DIR/mgw-tester/

@ -8,6 +8,7 @@ docker_images_require \
"ttcn3-msc-test"
set_clean_up_trap
set -e
SUBNET=20
network_create $SUBNET

@ -3,6 +3,7 @@
. ../jenkins-common.sh
set_clean_up_trap
set -e
clean_up() {
# start some stupid helper container so we can access the volume

@ -7,6 +7,7 @@ docker_images_require \
"ttcn3-pcu-test"
set_clean_up_trap
set -e
SUBNET=14
network_create $SUBNET

@ -7,6 +7,7 @@ docker_images_require \
"ttcn3-pcu-test"
set_clean_up_trap
set -e
SUBNET=13
network_create $SUBNET

@ -7,6 +7,7 @@ docker_images_require \
"ttcn3-remsim-test"
set_clean_up_trap
set -e
start_server() {
echo Starting container with osmo-remsim-server

@ -8,6 +8,7 @@ docker_images_require \
"ttcn3-sccp-test"
set_clean_up_trap
set -e
mkdir $VOL_BASE_DIR/sccp-tester
cp SCCP_Tests.cfg $VOL_BASE_DIR/sccp-tester/

@ -8,6 +8,7 @@ docker_images_require \
"ttcn3-sgsn-test"
set_clean_up_trap
set -e
SUBNET=8
network_create $SUBNET

@ -7,6 +7,7 @@ docker_images_require \
"ttcn3-sip-test"
set_clean_up_trap
set -e
SUBNET=11
network_create $SUBNET

@ -8,6 +8,7 @@ docker_images_require \
"ttcn3-smlc-test"
set_clean_up_trap
set -e
mkdir $VOL_BASE_DIR/smlc-tester
cp SMLC_Tests.cfg $VOL_BASE_DIR/smlc-tester/

@ -7,6 +7,7 @@ docker_images_require \
"ttcn3-stp-test"
set_clean_up_trap
set -e
mkdir $VOL_BASE_DIR/stp-tester
cp STP_Tests.cfg $VOL_BASE_DIR/stp-tester/

Loading…
Cancel
Save