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

This commit is contained in:
Julien Malka 2023-04-09 11:31:51 +02:00
parent cde7bc76b2
commit 4b3678e8b7
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 "error" in job.keys():
if "error" not in job.keys():
jobs.append(job)
self.build.addStepsAfterCurrentStep(
[BuildTrigger(scheduler="nix-build", name="nix-build", jobs=jobs)]