Skip to content
Discussion options

You must be logged in to vote

I was able to achieve retries by using this simple workaround

- name: Maven Deploy
  run: |
    # Retry 3 times before the steps actually fails
    (echo "===== Maven Deploy Attempt: 1 ====" && mvn deploy) || \
    (echo "===== Maven Deploy Attempt: 2 ====" && mvn deploy) || \
    (echo "===== Maven Deploy Attempt: 3 ====" && mvn deploy) || \
    (echo "==== Maven Deploy Step Failed ====" && exit 1)

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@knocte
Comment options

@webbertakken
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product Feedback Share your thoughts and suggestions on GitHub features and improvements
4 participants