jib
jib copied to clipboard
Retry on HTTP 500?
Hi all,
It seems the retry mecanism jib has does not work with HTTP 500 (guess it is intended as of today). The issue is that some docker registry - gitea to not mention it ;) - have known issues where it can lead to HTTP 500 and need a few retries to pass. My current workaround is to wrap jib build in a retry loop but if JIB could handle the 500 directly and do a few retries it would be awesome and frictionless.
@rmannibucau Are you suggesting some variation of the solution implemented here? https://github.com/GoogleContainerTools/jib/pull/3351
That is what I had in mind if it catches 500.
up, is it something which could happen? While jib-core is used workarounds are quite easy but while using jib in a maven release it is really less trivial to workaround the process (and i have a case i can't deploy images after the jar release so I must do it all at once).
@mpeddada1 if it helps I put a draft at https://github.com/GoogleContainerTools/jib/pull/3954
up?
I already opened an issue ticket to handle 502 errors too https://github.com/GoogleContainerTools/jib/issues/4266