Skip to content

Commit e196890

Browse files
use airlock only for kokoro jobs
1 parent 43ad679 commit e196890

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.kokoro/build.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,16 @@ fi
3535
mvn -version
3636
echo ${JOB_TYPE}
3737

38+
# Enable airlock only for Kokoro jobs
39+
INSTALL_OPTS=""
40+
if [[ -z "${DEPLOY_ENV}" ]]; then
41+
INSTALL_OPTS="-Pairlock-trusted"
42+
fi
43+
3844
# attempt to install 3 times with exponential backoff (starting with 10 seconds)
3945
retry_with_backoff 3 10 \
4046
mvn install -B -V -U -ntp \
41-
-Pairlock-trusted \
47+
${INSTALL_OPTS} \
4248
-DskipTests=true \
4349
-Dclirr.skip=true \
4450
-Denforcer.skip=true \

0 commit comments

Comments
 (0)