From c25a5978a61001a269c41d26392574fc599d3752 Mon Sep 17 00:00:00 2001 From: Deborah Awoyemi Date: Tue, 24 Jan 2023 15:57:07 +0000 Subject: [PATCH] ci: Fix n1sdp timeout issue when image builds Job execution is taking longer than 3 hours. The fix uses the 'retry' keyword to run the job again when that specific error occurs. Signed-off-by: Deborah Awoyemi --- .gitlab/ci/cassini-build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab/ci/cassini-build.yml b/.gitlab/ci/cassini-build.yml index ceca8ad..52a270a 100644 --- a/.gitlab/ci/cassini-build.yml +++ b/.gitlab/ci/cassini-build.yml @@ -49,6 +49,9 @@ - echo "Persistent cache volume could be empty, create directories required" - mkdir --verbose --parents $IMAGE_DIR + retry: + max: 2 + when: job_execution_timeout # Delete stored images Delete-Images: -- GitLab