Skip to content

Commit

Permalink
verify overlay download in native image process
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoayyed committed Dec 20, 2023
1 parent 79760b4 commit 0232a8e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ci/validate-cas-native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ if [[ "${FETCH_OVERLAY}" == "true" ]]; then
parameters="casVersion=${CAS_VERSION}&nativeImageSupported=true"
java -jar app/build/libs/app.jar &
pid=$!
sleep 15
sleep 25
printgreen "Requesting CAS overlay for ${parameters}"
mkdir tmp
cd tmp || exit
curl http://localhost:8080/starter.tgz --connect-timeout 30 -d "${parameters}" | tar -xzvf -
if [ $? -ne 0 ]; then
printred "Failed to download CAS overlay from CAS Initializr"
exit 1
fi
kill -9 $pid
[ "$CI" = "true" ] && pkill java
printgreen "Working directory: ${PWD}"
Expand Down

0 comments on commit 0232a8e

Please sign in to comment.