From 4084e9261aac15257d030afb4ffb0375343f9396 Mon Sep 17 00:00:00 2001 From: henry Date: Thu, 30 Nov 2023 15:42:40 -0600 Subject: [PATCH] ci: retry building upto 3 times on failure --- ci/jenkins/scripts/packaging.groovy | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/jenkins/scripts/packaging.groovy b/ci/jenkins/scripts/packaging.groovy index ad5962dd..63b1cc37 100644 --- a/ci/jenkins/scripts/packaging.groovy +++ b/ci/jenkins/scripts/packaging.groovy @@ -144,6 +144,7 @@ def buildPkg(args = [:]){ } } def retries = args['retries'] ? args['retries'] : 1 + retry(retries){ def agentRunner = getAgent(args, dockerImageName) agentRunner { setup()