Skip to content

Commit 5738780

Browse files
committed
Fail build when jar download was unsuccessful
1 parent f5bbe88 commit 5738780

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

junit5-jupiter-starter-ant/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ standalone_jar="${ant_folder}/lib/junit-platform-console-standalone-${junit_plat
1515
#
1616
if [ ! -d "${ant_folder}" ]; then
1717
echo "Downloading Ant $ant_version..."
18-
curl --silent --show-error --remote-name "https://archive.apache.org/dist/ant/binaries/${ant_archive}"
18+
curl --silent --show-error --fail --remote-name "https://archive.apache.org/dist/ant/binaries/${ant_archive}"
1919
tar --extract -z --exclude "${ant_folder}/manual" --file "${ant_archive}"
2020
fi
2121

@@ -24,7 +24,7 @@ fi
2424
#
2525
if [ ! -f "${standalone_jar}" ]; then
2626
echo "Downloading junit-platform-console-standalone $junit_platform_version..."
27-
curl --silent --show-error "https://repo1.maven.org/maven2/org/junit/platform/junit-platform-console-standalone/${junit_platform_version}/junit-platform-console-standalone-${junit_platform_version}.jar" \
27+
curl --silent --show-error --fail "https://repo1.maven.org/maven2/org/junit/platform/junit-platform-console-standalone/${junit_platform_version}/junit-platform-console-standalone-${junit_platform_version}.jar" \
2828
--output "${standalone_jar}"
2929
fi
3030

0 commit comments

Comments
 (0)