Updated builbot config

This commit is contained in:
Luj 2023-05-07 13:51:12 +02:00
parent 35a1ae8b32
commit db9c2e07c5
Signed by: luj
GPG key ID: 6FC74C847011FD83
2 changed files with 51 additions and 7 deletions

View file

@ -20,7 +20,7 @@ from buildbot.process.results import FAILURE
from buildbot.steps.master import SetProperty
def failure(step):
return step.getProperty("GitFailed")
return (step.getProperty("GitFailed")=="failed")
class BuildTrigger(Trigger):
"""
@ -236,12 +236,11 @@ def nix_update_flake_config(
submodules=True,
branch="update_flake_lock",
haltOnFailure=False,
warnOnFailure=True,
flunkOnFailure=False,
#flunkOnFailure=False,
)
)
factory.addStep(SetProperty(property="GitFailed", value="failed", hideStepIf=True, doStepIf=(lambda step: step.build.results == FAILURE)))
factory.addStep(SetProperty(property="GitFailed", value="failed", doStepIf=(lambda step: step.build.results == FAILURE)))
factory.addStep(
steps.Git(
@ -253,7 +252,6 @@ def nix_update_flake_config(
mode="full",
branch="main",
doStepIf=failure,
hideStepIf=lambda _, x: not(failure(x))
)
)
factory.addStep(steps.ShellCommand(
@ -266,7 +264,6 @@ def nix_update_flake_config(
],
haltOnFailure=True,
doStepIf=failure,
hideStepIf=lambda _, x: not(failure(x))
)
)