From c3ff4261b45a0876f2b86172e066c8cd3bff1a77 Mon Sep 17 00:00:00 2001 From: Swikriti Tripathi Date: Thu, 21 Jul 2022 11:20:09 +0545 Subject: [PATCH] Add retry option --- .drone.star | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.star b/.drone.star index 23722cf1f6..e6fc3e393c 100644 --- a/.drone.star +++ b/.drone.star @@ -1599,7 +1599,7 @@ def makeNodeGenerate(module): "CHROMEDRIVER_SKIP_DOWNLOAD": "true", # install fails on arm and chromedriver is a test only dependency }, "commands": [ - "%s ci-node-generate" % (make), + "retry -t 3 '%s ci-node-generate'" % (make), ], "volumes": [stepVolumeGo], }, @@ -1615,7 +1615,7 @@ def makeGoGenerate(module): "name": "generate go", "image": OC_CI_GOLANG, "commands": [ - "%s ci-go-generate" % (make), + "retry -t 3 '%s ci-go-generate'" % (make), ], "volumes": [stepVolumeGo], }, @@ -1861,7 +1861,7 @@ def build(): "name": "build", "image": OC_CI_GOLANG, "commands": [ - "make -C ocis build", + "retry -t 3 'make -C ocis build'", ], "volumes": [stepVolumeGo], },