File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,6 @@ if [[ ! -z "${KOKORO_JOB_TYPE}" ]]; then
4141 INSTALL_OPTS=" -Pairlock-trusted"
4242fi
4343
44- echo ${INSTALL_OPTS}
45-
4644# attempt to install 3 times with exponential backoff (starting with 10 seconds)
4745retry_with_backoff 3 10 \
4846 mvn install -B -V -U -ntp \
Original file line number Diff line number Diff line change @@ -53,9 +53,16 @@ if [ ! -z "${JAVA11_HOME}" ]; then
5353 setJava " ${JAVA11_HOME} "
5454fi
5555
56+ # Enable airlock only for Kokoro jobs
57+ INSTALL_OPTS=" "
58+ if [[ ! -z " ${KOKORO_JOB_TYPE} " ]]; then
59+ INSTALL_OPTS=" -Pairlock-trusted"
60+ fi
61+
5662# this should run maven enforcer
5763retry_with_backoff 3 10 \
5864 mvn install -B -V -ntp \
65+ ${INSTALL_OPTS} \
5966 -DskipTests=true \
6067 -Dmaven.javadoc.skip=true \
6168 -Dclirr.skip=true
You can’t perform that action at this time.
0 commit comments