Skip to content

Commit 8c9bde0

Browse files
committed
fix: add flag to enable logs during release
1 parent 9e69efe commit 8c9bde0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.kokoro/release.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@ apt-get install -y openjdk-"${JDK_VERSION}"-jdk
7171
export JAVA_HOME="$(update-java-alternatives -l | grep "1.${JDK_VERSION}" | head -n 1 | tr -s " " | cut -d " " -f 3)"
7272
echo "JAVA_HOME=$JAVA_HOME"
7373

74-
mvn clean deploy -B -q \
74+
SUPPRESS_LOGS='-q'
75+
if [[ -n "${ENABLE_LOGS}" ]]; then
76+
SUPPRESS_LOGS=''
77+
fi
78+
79+
mvn clean deploy -B ${SUPPRESS_LOGS} \
7580
-P sonatype-oss-release \
7681
--settings=../settings.xml \
7782
-Dgpg.executable=gpg \

0 commit comments

Comments
 (0)