From 3389164c13970d9b2d7bfcfe24323b444046cf41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 12 Jul 2024 07:28:28 +0200 Subject: [PATCH] fix retries beeing zero --- buildbot_nix/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildbot_nix/__init__.py b/buildbot_nix/__init__.py index 03cc229..d5d1d41 100644 --- a/buildbot_nix/__init__.py +++ b/buildbot_nix/__init__.py @@ -252,7 +252,7 @@ class NixBuildCommand(buildstep.ShellMixin, steps.BuildStep): yield self.runCommand(cmd) res = cmd.results() - if res == util.FAILURE: + if res == util.FAILURE and self.retries > 0: retries = RETRY_COUNTER.retry_build(self.getProperty("build_uuid")) if retries > self.retries - 1: return util.RETRY