feat: hide update steps

This commit is contained in:
Luj 2023-03-10 21:29:17 +01:00
parent f1e52eace1
commit db3b7df775

View file

@ -20,9 +20,7 @@ from buildbot.process.results import FAILURE
from buildbot.steps.master import SetProperty from buildbot.steps.master import SetProperty
def failure(step): def failure(step):
if step.getProperty("GitFailed"): return step.getProperty("GitFailed")
return True
return False
class BuildTrigger(Trigger): class BuildTrigger(Trigger):
""" """
@ -246,7 +244,8 @@ def nix_update_flake_config(
haltOnFailure=True, haltOnFailure=True,
mode="full", mode="full",
branch="main", branch="main",
doStepIf=failure doStepIf=failure,
hideStepIf=lambda x: not(failure(x))
) )
) )
factory.addStep(steps.ShellCommand( factory.addStep(steps.ShellCommand(
@ -258,7 +257,8 @@ def nix_update_flake_config(
"update_flake_lock" "update_flake_lock"
], ],
haltOnFailure=True, haltOnFailure=True,
doStepIf=failure doStepIf=failure,
hideStepIf=lambda x: not(failure(x))
) )
) )