mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-27 06:10:53 +01:00
feat: hide update steps
This commit is contained in:
parent
ef79ebbd3d
commit
67b391d33a
1 changed files with 5 additions and 5 deletions
|
@ -20,9 +20,7 @@ from buildbot.process.results import FAILURE
|
|||
from buildbot.steps.master import SetProperty
|
||||
|
||||
def failure(step):
|
||||
if step.getProperty("GitFailed"):
|
||||
return True
|
||||
return False
|
||||
return step.getProperty("GitFailed")
|
||||
|
||||
class BuildTrigger(Trigger):
|
||||
"""
|
||||
|
@ -246,7 +244,8 @@ def nix_update_flake_config(
|
|||
haltOnFailure=True,
|
||||
mode="full",
|
||||
branch="main",
|
||||
doStepIf=failure
|
||||
doStepIf=failure,
|
||||
hideStepIf=lambda x: not(failure(x))
|
||||
)
|
||||
)
|
||||
factory.addStep(steps.ShellCommand(
|
||||
|
@ -258,7 +257,8 @@ def nix_update_flake_config(
|
|||
"update_flake_lock"
|
||||
],
|
||||
haltOnFailure=True,
|
||||
doStepIf=failure
|
||||
doStepIf=failure,
|
||||
hideStepIf=lambda x: not(failure(x))
|
||||
)
|
||||
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue