Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d2b52da

Browse filesBrowse 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
Copy full SHA for d2b52da

File tree

Expand file treeCollapse file tree

1 file changed

+12
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+12
-1
lines changed

‎.kokoro/trampoline.sh

Copy file name to clipboardExpand all lines: .kokoro/trampoline.sh
+12-1Lines changed: 12 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.