We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2f4c7f commit d2b52daCopy full SHA for d2b52da
.kokoro/trampoline.sh
@@ -1,5 +1,4 @@
1
#!/bin/bash
2
-
3
# Copyright 2017 Google Inc.
4
#
5
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,4 +13,16 @@
14
13
# See the License for the specific language governing permissions and
15
# limitations under the License.
16
+set -eo pipefail
17
+
18
+# Always run the cleanup script, regardless of the success of bouncing into
19
+# the container.
20
21
+function cleanup() {
22
+ chmod +x ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh
23
+ ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh
24
+ echo "cleanup";
25
+}
26
+trap cleanup EXIT
27
28
python3 "${KOKORO_GFILE_DIR}/trampoline_v1.py"
0 commit comments