Browse Source

Merge "Add retry to build" into stable/train

changes/60/762660/1
Zuul 2 months ago
committed by Gerrit Code Review
parent
commit
72c98b6664
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      tripleo_common/image/builder/buildah.py

+ 5
- 0
tripleo_common/image/builder/buildah.py View File

@@ -121,6 +121,11 @@ class BuildahBuilder(base.BaseBuilder):
if self.push_containers:
self.push(self._get_destination(container_name))

@tenacity.retry( # Retry up to 3 times with 1 second delay
reraise=True,
wait=1,
stop=tenacity.stop_after_attempt(3)
)
def build(self, container_name, container_build_path):
"""Build an image from a given directory.



Loading…
Cancel
Save