Skip to content

Commit 247cec2

Browse files
introduce new environmental variable
1 parent 4e1f2ef commit 247cec2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.kokoro/dependencies.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
set -eo pipefail
1717
shopt -s nullglob
1818

19+
set -x
20+
1921
## Get the directory of the build script
2022
scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}"))
2123
## cd to the parent directory, i.e. the root of the git repo
@@ -53,9 +55,8 @@ if [ ! -z "${JAVA11_HOME}" ]; then
5355
setJava "${JAVA11_HOME}"
5456
fi
5557

56-
# Enable airlock only for Kokoro jobs
5758
INSTALL_OPTS=""
58-
if [[ ! -z "${KOKORO_JOB_TYPE}" ]]; then
59+
if [[ $ENABLE_AIRLOCK = 'true' ]]; then
5960
INSTALL_OPTS="-Pairlock-trusted"
6061
fi
6162

.kokoro/presubmit/dependencies.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,8 @@ env_vars: {
1010
key: "TRAMPOLINE_BUILD_FILE"
1111
value: "github/java-spanner/.kokoro/dependencies.sh"
1212
}
13+
14+
env_vars: {
15+
key: "ENABLE_AIRLOCK",
16+
value: "true"
17+
}

0 commit comments

Comments
 (0)