summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py')
-rw-r--r--bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py b/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py
index 0bd5d08226..8ba836ee4b 100644
--- a/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py
+++ b/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py
@@ -49,15 +49,13 @@ class Command(NoArgsCommand):
49 49
50 logger.debug("runbuilds: starting build %s, environment %s" % (str(br).decode('utf-8'), bec.be)) 50 logger.debug("runbuilds: starting build %s, environment %s" % (str(br).decode('utf-8'), bec.be))
51 51
52 # write the build identification variable
53 BRVariable.objects.create(req = br, name="TOASTER_BRBE", value="%d:%d" % (br.pk, bec.be.pk))
54
55 # let the build request know where it is being executed 52 # let the build request know where it is being executed
56 br.environment = bec.be 53 br.environment = bec.be
57 br.save() 54 br.save()
58 55
59 # this triggers an async build 56 # this triggers an async build
60 bec.triggerBuild(br.brbitbake, br.brlayer_set.all(), br.brvariable_set.all(), br.brtarget_set.all()) 57 bec.triggerBuild(br.brbitbake, br.brlayer_set.all(), br.brvariable_set.all(),
58 br.brtarget_set.all(), "%d:%d" % (br.pk, bec.be.pk))
61 59
62 except Exception as e: 60 except Exception as e:
63 logger.error("runbuilds: Error launching build %s" % e) 61 logger.error("runbuilds: Error launching build %s" % e)