Skip to content

Commit d2b52da

Browse files
authored
Update to latest trampoline.sh (GoogleCloudPlatform#1750)
* Updated trampoline script to match latest version that cleans up files * Added newline to end of trampoline script
1 parent a2f4c7f commit d2b52da

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.kokoro/trampoline.sh

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
32
# Copyright 2017 Google Inc.
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,4 +13,16 @@
1413
# See the License for the specific language governing permissions and
1514
# limitations under the License.
1615

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+
1728
python3 "${KOKORO_GFILE_DIR}/trampoline_v1.py"

0 commit comments

Comments
 (0)