fix(eval): event.refUpdate.project
instead of event.project
Signed-off-by: Raito Bezarius <raito@lix.systems>
This commit is contained in:
parent
464e02c4ba
commit
d624e412de
|
@ -177,8 +177,8 @@ class BuildTrigger(steps.BuildStep):
|
|||
return sch
|
||||
|
||||
def schedule_one(self, build_props: Properties, job):
|
||||
project_name = build_props.getProperty('event.project')
|
||||
source = f"{project_name}-eval-lix"
|
||||
project_name = build_props.getProperty("event.refUpdate.project")
|
||||
source = f"{project_name}-eval"
|
||||
attr = job.get("attr", "eval-error")
|
||||
name = attr
|
||||
name = f"{FLAKE_TARGET_ATTRIBUTE_FOR_JOBS}.{name}"
|
||||
|
@ -372,7 +372,8 @@ class NixEvalCommand(buildstep.ShellMixin, steps.BuildStep):
|
|||
# run nix-eval-jobs --flake .#$FLAKE_TARGET_ATTRIBUTE_FOR_JOBS to generate the dict of stages
|
||||
cmd: remotecommand.RemoteCommand = yield self.makeRemoteShellCommand()
|
||||
build_props = self.build.getProperties()
|
||||
project_name = build_props.getProperty('event.project')
|
||||
project_name = build_props.getProperty('event.refUpdate.project')
|
||||
assert project_name is not None, "`event.refUpdate.project` is not available on the build properties, unexpected build type!"
|
||||
|
||||
yield self.runCommand(cmd)
|
||||
|
||||
|
|
Loading…
Reference in a new issue