[users at bb.net] NestedParameter retrieval

Riccardo Corsi riccardo.corsi at kairos3d.it
Wed Nov 23 11:49:40 UTC 2016


Hi all,

when I use a ForceScheduler with a simple parameter like:

schedulersList.append(schedulers.ForceScheduler(
   # custom build properties
   properties=[
         util.BooleanParameter(name="examples",
                              label="build examples", default=False)
   ]
)

I retrieve the corresponding param in my build steps with:

buildFactory.addStep(steps.Git(
      doStepIf = lambda step: step.build.getProperty('examples')



What am I supposed to do when I use NestedParameter to group some
properties together?
I don't know how to retrieve them in the corresponding build steps.
For instance, how do I access the "examples" boolean property given the
following form?
Thank you,
Riccardo

schedulersList.append(schedulers.ForceScheduler(
   # custom build properties
   properties=[
      # group build parameters together
      util.NestedParameter(name="options", label="Build Options",
layout="vertical", fields=[

         util.BooleanParameter(name="examples",
                              label="build examples", default=False),
      ])
   ]
)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20161123/d2fedf18/attachment.html>


More information about the users mailing list