Skip to content

Commit

Permalink
Fix status code for gradle check with retry (#2902)
Browse files Browse the repository at this point in the history
Signed-off-by: Kunal Kotwani <kkotwani@amazon.com>

Signed-off-by: Kunal Kotwani <kkotwani@amazon.com>
  • Loading branch information
kotwanikunal authored Nov 15, 2022
1 parent 7dc560e commit 1fbd80f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/gradle/gradle-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ fi

echo "Please check jenkins url for logs: $WORKFLOW_URL"

if [ "$RESULT" != "SUCCESS" ]; then
echo "Result: $RESULT"
exit 1
else
if [ "$RESULT" == "SUCCESS" || "$RESULT" == "UNSTABLE" ]; then
echo "Result: $RESULT"
echo "Get codeCoverage.xml" && curl -SLO ${WORKFLOW_URL}artifact/codeCoverage.xml
echo 0
else
echo "Result: $RESULT"
exit 1
fi

0 comments on commit 1fbd80f

Please sign in to comment.