chore(schedule): generalize source
Signed-off-by: Raito Bezarius <raito@lix.systems>
This commit is contained in:
parent
2a1ed49ac8
commit
7102157055
1 changed files with 4 additions and 3 deletions
|
@ -153,8 +153,9 @@ class BuildTrigger(steps.BuildStep):
|
||||||
# todo: check ITriggerableScheduler
|
# todo: check ITriggerableScheduler
|
||||||
return sch
|
return sch
|
||||||
|
|
||||||
def schedule_one(self, build_props, job):
|
def schedule_one(self, build_props: Properties, job):
|
||||||
source = f"nix-eval-lix"
|
project_name = build_props.getProperty('event.project')
|
||||||
|
source = f"{project_name}-eval-lix"
|
||||||
attr = job.get("attr", "eval-error")
|
attr = job.get("attr", "eval-error")
|
||||||
name = attr
|
name = attr
|
||||||
name = f"{FLAKE_TARGET_ATTRIBUTE_FOR_JOBS}.{name}"
|
name = f"{FLAKE_TARGET_ATTRIBUTE_FOR_JOBS}.{name}"
|
||||||
|
@ -314,7 +315,7 @@ class BuildTrigger(steps.BuildStep):
|
||||||
self.all_deps[dep].remove(job.get("drvPath"))
|
self.all_deps[dep].remove(job.get("drvPath"))
|
||||||
yield logs.addHeader('Done!\n')
|
yield logs.addHeader('Done!\n')
|
||||||
yield logs.finish()
|
yield logs.finish()
|
||||||
build_props.setProperty("failed_builds", failed, "nix-eval-lix")
|
build_props.setProperty("failed_builds", failed, "nix-eval")
|
||||||
if self.ended:
|
if self.ended:
|
||||||
return util.CANCELLED
|
return util.CANCELLED
|
||||||
return all_results
|
return all_results
|
||||||
|
|
Loading…
Reference in a new issue