feat: failed evaluation doesnt create a job anymore (2)

This commit is contained in:
Luj 2023-04-09 11:29:40 +02:00
parent 5dd8cdd5c7
commit d1d70652c4

View file

@ -118,7 +118,7 @@ class NixEvalCommand(buildstep.ShellMixin, steps.BuildStep):
for line in self.observer.getStdout().split("\n"):
if line != "":
job = json.loads(line)
if job["error"] is not None:
if "error" in job.keys():
jobs.append(job)
self.build.addStepsAfterCurrentStep(
[BuildTrigger(scheduler="nix-build", name="nix-build", jobs=jobs)]