[users at bb.net] Cannot Stop: you need to have role 'admins'

Chris Spencer chrisspen at gmail.com
Tue Feb 21 03:53:54 UTC 2017


How do you grant your user the ability to stop/resume builds?

I'm able to login using "myusername at mydomain.com", and Buildbot shows an
icon for my user with a logout link, but when I try to stop a build, I get
the error message:

    Cannot Stop: you need to have role 'admins'

My auth setup looks like:

    authz = util.Authz(
      allowRules=[
        util.StopBuildEndpointMatcher(role="admins"),
        util.ForceBuildEndpointMatcher(role="admins"),
        util.RebuildBuildEndpointMatcher(role="admins")
      ],
      roleMatchers=[
        util.RolesFromEmails(admins=["myusername at mydomain.com"])
      ]
    )
    c['www'] = dict(
        port=8010,
        plugins=dict(waterfall_view={}, console_view={}),
        auth=util.RemoteUserAuth(),
        authz=authz,
    )

What am I doing wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20170220/d5a8aaac/attachment.html>


More information about the users mailing list