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

This commit is contained in:
Julien Malka 2023-04-09 11:29:40 +02:00
parent 3c37a22aaf
commit cde7bc76b2
Signed by: Luj
GPG key ID: 6FC74C847011FD83

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)]