Ticket #52742: variants-master.cfg.2.diff
File variants-master.cfg.2.diff, 2.4 KB (added by mojca (Mojca Miklavec), 8 years ago) |
---|
-
buildbot/master.cfg
a b c['schedulers'] = [ 220 220 schedulers.ForceScheduler( 221 221 name='portwatcher_force', 222 222 builderNames=portwatcher_buildernames, 223 properties=[util.StringParameter( 224 name='portlist', 225 label='Port list:', 226 default='', 227 size=30, 228 required=True)]) 223 properties=[ 224 util.StringParameter( 225 name='portlist', 226 label='Port list:', 227 default='', 228 size=30, 229 required=True), 230 util.StringParameter( 231 name='variants', 232 label='Variants:', 233 default='', 234 size=30, 235 required=False)]) 229 236 ] 230 237 231 238 … … class TriggerWithPortlist(steps.Trigger): 369 376 for port in self.build.getProperty('subportlist').split(): 370 377 props = self.set_properties.copy() 371 378 props['portname'] = port 379 props['variants'] = self.build.getProperty('variants') 372 380 sp.append([scheduler, props]) 373 381 return sp 374 382 … … portbuilder_factory.workdir = '../build' 459 467 logdir = os.path.join(portbuilder_factory.workdir, 'logs') 460 468 461 469 portbuilder_factory.addStep(steps.Compile( 462 command=['./mpbb/mpbb', '--prefix', util.WithProperties(prefix), 'install-dependencies', util.WithProperties('%(portname)s') ],470 command=['./mpbb/mpbb', '--prefix', util.WithProperties(prefix), 'install-dependencies', util.WithProperties('%(portname)s'), util.WithProperties('%(variants)s')], 463 471 name='install-dependencies', 464 472 description=['installing', 'dependencies', 'of', util.WithProperties('%(portname)s')], 465 473 descriptionDone=['install', 'dependencies', 'of', util.WithProperties('%(portname)s')], … … portbuilder_factory.addStep(steps.Compile( 467 475 haltOnFailure=True)) 468 476 469 477 portbuilder_factory.addStep(steps.Compile( 470 command=['./mpbb/mpbb', '--prefix', util.WithProperties(prefix), 'install-port', util.WithProperties('%(portname)s') ],478 command=['./mpbb/mpbb', '--prefix', util.WithProperties(prefix), 'install-port', util.WithProperties('%(portname)s'), util.WithProperties('%(variants)s')], 471 479 name='install-port', 472 480 description=['installing', util.WithProperties('%(portname)s')], 473 481 descriptionDone=['install', util.WithProperties('%(portname)s')],