1*882aa7c7SMatt Gilbride#!/bin/bash 2*882aa7c7SMatt Gilbride# Copyright 2018 Google Inc. 3*882aa7c7SMatt Gilbride# 4*882aa7c7SMatt Gilbride# Licensed under the Apache License, Version 2.0 (the "License"); 5*882aa7c7SMatt Gilbride# you may not use this file except in compliance with the License. 6*882aa7c7SMatt Gilbride# You may obtain a copy of the License at 7*882aa7c7SMatt Gilbride# 8*882aa7c7SMatt Gilbride# http://www.apache.org/licenses/LICENSE-2.0 9*882aa7c7SMatt Gilbride# 10*882aa7c7SMatt Gilbride# Unless required by applicable law or agreed to in writing, software 11*882aa7c7SMatt Gilbride# distributed under the License is distributed on an "AS IS" BASIS, 12*882aa7c7SMatt Gilbride# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*882aa7c7SMatt Gilbride# See the License for the specific language governing permissions and 14*882aa7c7SMatt Gilbride# limitations under the License. 15*882aa7c7SMatt Gilbrideset -eo pipefail 16*882aa7c7SMatt Gilbride# Always run the cleanup script, regardless of the success of bouncing into 17*882aa7c7SMatt Gilbride# the container. 18*882aa7c7SMatt Gilbridefunction cleanup() { 19*882aa7c7SMatt Gilbride chmod +x ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh 20*882aa7c7SMatt Gilbride ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh 21*882aa7c7SMatt Gilbride echo "cleanup"; 22*882aa7c7SMatt Gilbride} 23*882aa7c7SMatt Gilbridetrap cleanup EXIT 24*882aa7c7SMatt Gilbride 25*882aa7c7SMatt Gilbride$(dirname $0)/populate-secrets.sh # Secret Manager secrets. 26*882aa7c7SMatt Gilbridepython3 "${KOKORO_GFILE_DIR}/trampoline_v1.py" 27