Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(jenkins): Retry on 404 when getting build artifact #767

Merged
merged 2 commits into from
Jun 1, 2020

Conversation

gomid
Copy link
Contributor

@gomid gomid commented Jun 1, 2020

This PR is to fix spinnaker/spinnaker#5803. There is a small chance that the property file is not immediately available after build completes.

This PR adds retry on 404 when getting property file from Jenkins build, in addition to network/5XX errors.

Before this PR, if Jenkins return 404 on getPropertyFile it will not retried and the Jenkins stage will immediately fail. User will have to restart the stage just to get the build artifact.

After this PR, Igor will retry up to 5 times with 2 seconds non-exponential backoff if Jenkins return 404 code.

@cfieber cfieber added the ready to merge Approved and ready for merge label Jun 1, 2020
@mergify mergify bot merged commit 7c47ce3 into spinnaker:master Jun 1, 2020
@mergify mergify bot added the auto merged label Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Jenkins stage fail to bind property file after successful Jenkins build
3 participants