diff --git a/scripts/ci/after-script.sh b/scripts/ci/after-script.sh index 503cef56ef75..8c444e964f5c 100755 --- a/scripts/ci/after-script.sh +++ b/scripts/ci/after-script.sh @@ -2,9 +2,13 @@ set -e -o pipefail echo '*******************' -echo '** AFTER_SUCCESS **' +echo '** AFTER_SCRIPT **' echo '*******************' +if [ "$MODE" = "saucelabs" ]; then + ./scripts/sauce/sauce_connect_teardown.sh +fi + echo '---------------------' echo '-- WAIT FOR OTHERS --' diff --git a/scripts/sauce/sauce_connect_teardown.sh b/scripts/sauce/sauce_connect_teardown.sh new file mode 100755 index 000000000000..cd57a233beea --- /dev/null +++ b/scripts/sauce/sauce_connect_teardown.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +set -e -o pipefail + + +echo "Shutting down Sauce Connect tunnel" +killall sc