Skip to content

Commit

Permalink
[FLINK-18051][AZP] Fail Maven setup stage on error
Browse files Browse the repository at this point in the history
  • Loading branch information
rmetzger committed Jun 3, 2020
1 parent 66d1300 commit 07133e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/ci/maven-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function run_mvn {
export -f run_mvn

function setup_maven {
set -e # fail if there was an error setting up maven
if [ ! -d "${MAVEN_VERSIONED_DIR}" ]; then
wget https://archive.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.zip
unzip -d "${MAVEN_CACHE_DIR}" -qq "apache-maven-${MAVEN_VERSION}-bin.zip"
Expand All @@ -46,6 +47,7 @@ function setup_maven {
fi

echo "Installed Maven ${MAVEN_VERSION} to ${M2_HOME}"
set +e
}

function set_mirror_config {
Expand Down

0 comments on commit 07133e6

Please sign in to comment.