Skip to content

Commit

Permalink
add retry in smoke test (aws#288)
Browse files Browse the repository at this point in the history
* add retry in smoke test

* add retry by shell

* add retry by shell
  • Loading branch information
wangzlei authored Jun 23, 2021
1 parent 836654a commit 5143932
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/continuous-monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ jobs:

- name: Run smoke tests
id: distribution-availability
run: ./gradlew :smoke-tests:check -PtestDistributionChannel=true
run: |
(echo "===== Attempt: 1 ====" && ./gradlew :smoke-tests:check -PtestDistributionChannel=true) || \
(echo "===== Attempt: 2 ====" && ./gradlew :smoke-tests:check -PtestDistributionChannel=true) || \
(echo "===== Attempt: 3 ====" && ./gradlew :smoke-tests:check -PtestDistributionChannel=true) || \
(echo "===== No more retries. Failed! ====" && exit 1)
- name: Publish metric on X-Ray Java SDK distribution availability
if: ${{ always() }}
Expand Down

0 comments on commit 5143932

Please sign in to comment.