diff options
-rw-r--r-- | buildbot_gentoo_ci/steps/portage.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/buildbot_gentoo_ci/steps/portage.py b/buildbot_gentoo_ci/steps/portage.py index 74a8e37..775e076 100644 --- a/buildbot_gentoo_ci/steps/portage.py +++ b/buildbot_gentoo_ci/steps/portage.py @@ -228,7 +228,12 @@ class SetHostConf(BuildStep): separator2 = ' ' makeconf_list = [] log = yield self.addLog('host.conf') - makeconf_list.append('MAKEOPTS="-j14"') + # set MAKEOPTS from flavor + worker_data = yield self.gentooci.db.workers.getWorkerByUuid(self.getProperty('workername')) + print('worker_data') + worker_flavor = yield self.gentooci.db.workers.getFlavorById(worker_data['flavor_id']) + print('worker_flavor') + makeconf_list.append('MAKEOPTS="-j' + str(worker_flavor['cpu']) + '"') makeconf_string = separator1.join(makeconf_list) print(makeconf_string) yield self.build.addStepsAfterCurrentStep([ |