From 64e405b228310cf5e31ac318a8eb3954b7ba85f1 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sat, 20 Jul 2024 00:57:13 +0200 Subject: [PATCH] fix(steps): add *steps* not *step* Signed-off-by: Raito Bezarius --- buildbot_nix/__init__.py | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/buildbot_nix/__init__.py b/buildbot_nix/__init__.py index 69d239e..1037e49 100644 --- a/buildbot_nix/__init__.py +++ b/buildbot_nix/__init__.py @@ -471,23 +471,26 @@ class NixConfigure(buildstep.CommandMixin, steps.BuildStep): ci_buildbot_defn_exists = yield self.pathExists('build/.ci/buildbot.nix') if ci_buildbot_defn_exists: configure_log.addStdout(".ci/buildbot.nix found, configured for non-flake CI") - self.build.addStepAfterCurrentStep( - make_job_evaluator( - "evaluate `.ci/buildbot.nix` jobs", - self.evaluator_settings, - False - ) + self.build.addStepsAfterCurrentStep( + [ + make_job_evaluator( + "evaluate `.ci/buildbot.nix` jobs", + self.evaluator_settings, + False + ) + ] ) flake_exists = yield self.pathExists('build/flake.nix') if flake_exists: configure_log.addStdout(f"flake.nix found") - self.build.addStepAfterCurrentStep( - make_job_evaluator( - "evaluate `flake.nix` jobs", - self.evaluator_settings, - True - ) + self.build.addStepsAfterCurrentStep([ + make_job_evaluator( + "evaluate `flake.nix` jobs", + self.evaluator_settings, + True + ) + ] ) return