File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -358,6 +358,11 @@ if [ 'true' = "$DEPLOYMENT_OVERVIEW" ]; then
358
358
error " Deployment of application '$APPLICATION_NAME ' on deployment group '$DEPLOYMENT_GROUP ' failed: $ERROR_MESSAGE "
359
359
exit 1
360
360
fi
361
+ # Deployment succeeded
362
+ if [ " $STATUS " = ' Succeeded' ]; then
363
+ success " Deployment of application '$APPLICATION_NAME ' on deployment group '$DEPLOYMENT_GROUP ' succeeded"
364
+ break
365
+ fi
361
366
362
367
# Deployment Overview
363
368
IN_PROGRESS=$( echo $DEPLOYMENT_GET_OUTPUT | jsonValue ' InProgress' | tr -d ' \r\n' | tr -d ' ' )
@@ -366,13 +371,6 @@ if [ 'true' = "$DEPLOYMENT_OVERVIEW" ]; then
366
371
SUCCEEDED=$( echo $DEPLOYMENT_GET_OUTPUT | jsonValue ' Succeeded' | tr -d ' \r\n' | tr -d ' ' )
367
372
FAILED=$( echo $DEPLOYMENT_GET_OUTPUT | jsonValue ' Failed' | tr -d ' \r\n' | tr -d ' ' )
368
373
echo " | In Progress: $IN_PROGRESS | Pending: $PENDING | Skipped: $SKIPPED | Succeeded: $SUCCEEDED | Failed: $FAILED |"
369
-
370
- # Deployment succeeded
371
- if [ " $STATUS " = ' Succeeded' ]; then
372
- success " Deployment of application '$APPLICATION_NAME ' on deployment group '$DEPLOYMENT_GROUP ' succeeded"
373
- break
374
- fi
375
-
376
374
done
377
375
else
378
376
info " Deployment of application '$APPLICATION_NAME ' on deployment group '$DEPLOYMENT_GROUP ' in progress"
You can’t perform that action at this time.
0 commit comments