From ff88691cc7d2191f6a3166a2328c9ff200fe9b27 Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Thu, 2 Jul 2020 11:14:59 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=83=20Retry=20mock=20build=20up=20to?= =?UTF-8?q?=203=20times?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sometimes dnf has issues downloading RPMs or downloading the repo XML and this breaks the mock build. Try to run the mock builds three times before giving up. Signed-off-by: Major Hayden --- schutzbot/Jenkinsfile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/schutzbot/Jenkinsfile b/schutzbot/Jenkinsfile index e2f8b8796..b46bb0e6c 100644 --- a/schutzbot/Jenkinsfile +++ b/schutzbot/Jenkinsfile @@ -42,7 +42,9 @@ pipeline { } steps { sh "schutzbot/ci_details.sh" - sh "schutzbot/mockbuild.sh" + retry(3) { + sh "schutzbot/mockbuild.sh" + } stash ( includes: 'osbuild-mock.repo', name: 'fedora31' @@ -56,7 +58,9 @@ pipeline { } steps { sh "schutzbot/ci_details.sh" - sh "schutzbot/mockbuild.sh" + retry(3) { + sh "schutzbot/mockbuild.sh" + } stash ( includes: 'osbuild-mock.repo', name: 'fedora32' @@ -70,7 +74,9 @@ pipeline { } steps { sh "schutzbot/ci_details.sh" - sh "schutzbot/mockbuild.sh" + retry(3) { + sh "schutzbot/mockbuild.sh" + } stash ( includes: 'osbuild-mock.repo', name: 'rhel8cdn' @@ -87,7 +93,9 @@ pipeline { } steps { sh "schutzbot/ci_details.sh" - sh "schutzbot/mockbuild.sh" + retry(3) { + sh "schutzbot/mockbuild.sh" + } stash ( includes: 'osbuild-mock.repo', name: 'rhel83'