File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -18,14 +18,14 @@ applyModules() {
1818 -H " accept: * /* " \
1919 -H " Content-Type: application/json" \
2020 -d " $payload " \
21- " http://localhost:7471 " " $api " "
21+ " http://localhost:1339 " " $api " "
2222
2323 local status_code=$( curl -o /dev/null -s -w " %{http_code}\n" \
2424 -X POST \
2525 -H " accept: */*" \
2626 -H " Content-Type: application/json" \
2727 -d " $payload " \
28- " http://localhost:7471 " " $api " )
28+ " http://localhost:1339 " " $api " )
2929
3030 if [[ $status_code == ' 40' * || $status_code == ' 50' * ]]; then
3131 echo " Error when calling API:" " $status_code " " $api "
4141version=$1
4242payload=" $( sed -e " s?SEED4J_SAMPLE_APP_FOLDER?$( pwd) ?g" seed4jsample.json) "
4343
44+ echo " *** Checking service health..."
45+ health_status=$( curl -s http://localhost:1339/management/health | jq -r ' .status' )
46+
47+ if [[ " $health_status " != " UP" ]]; then
48+ echo " Service is not healthy: $health_status "
49+ exit 1
50+ fi
51+
4452echo " *** Git: update project..."
4553git switch $GIT_MAIN_BRANCH
4654git fetch $GIT_REMOTE
You can’t perform that action at this time.
0 commit comments