[Buildbot-devel] required fields forcing a build

Pierre Tardy tardyp at gmail.com
Thu Sep 8 21:03:59 UTC 2011

On Thu, Sep 8, 2011 at 9:04 PM, Todd Cooper <todd_cooper at yahoo.com> wrote:
> OK .. I started to look under the hood.
> One question I have is whether or not you should be able to change the
> repository on the fly with a force.
> I can see the need, but should a person at a GUI be able to do that?  What
> if they are usually building with SVN and they specify a git repo?
What I need is to let my users apply some patches that are pending in
the gerrit system.
I plan to say:

 ForceScheduler( ..
 properties = dict ( change_downloads = GerritChangeURLSParameter()))

And then have my steps take this additional property in account when run.
For me the steps are here to put frame on what is possible.

> class ForceScheduler():
>     """
>     Define a ForceScheduler for a scheduler
>     """
>     def __init__(self, name, authz="", authzRequired=False,
>                  reason="", reasonRequired=False,
>                  branch=None, branchRequired=False,
>                  properties):
>         """
>         @type  name: string
>         @param name: name of the ForceScheduler

We have to be clear in the doc that either a string can be passed, or
a IParameter() instance, that would generate appropriate form fields,
and parsing machinery.
if a string is passed, then this parameter cannot be changed by the force form.

>         @type  authz: string
>         @param authz: person claiming to be authorized to force build
This is not clear for me. Is that rather the list of person/group
authorized to do the build?


More information about the devel mailing list