From 247cec2fe261e8f127019e7eb21978aa8574e022 Mon Sep 17 00:00:00 2001 From: Sakthivel Subramanian Date: Thu, 5 Dec 2024 10:57:49 +0530 Subject: [PATCH] introduce new environmental variable --- .kokoro/dependencies.sh | 5 +++-- .kokoro/presubmit/dependencies.cfg | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index 7fc722077aa..841d2dfdcc7 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -16,6 +16,8 @@ set -eo pipefail shopt -s nullglob +set -x + ## Get the directory of the build script scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) ## cd to the parent directory, i.e. the root of the git repo @@ -53,9 +55,8 @@ if [ ! -z "${JAVA11_HOME}" ]; then setJava "${JAVA11_HOME}" fi -# Enable airlock only for Kokoro jobs INSTALL_OPTS="" -if [[ ! -z "${KOKORO_JOB_TYPE}" ]]; then +if [[ $ENABLE_AIRLOCK = 'true' ]]; then INSTALL_OPTS="-Pairlock-trusted" fi diff --git a/.kokoro/presubmit/dependencies.cfg b/.kokoro/presubmit/dependencies.cfg index 808bf138e1c..60ddd098b7f 100644 --- a/.kokoro/presubmit/dependencies.cfg +++ b/.kokoro/presubmit/dependencies.cfg @@ -10,3 +10,8 @@ env_vars: { key: "TRAMPOLINE_BUILD_FILE" value: "github/java-spanner/.kokoro/dependencies.sh" } + +env_vars: { + key: "ENABLE_AIRLOCK", + value: "true" +}