[Buildbot-devel] Forcing builds remotely, anyone with code in stock?

Lukáš Linhart writeme at almad.net
Sat Jan 30 16:58:30 UTC 2010


>>> > Hi,
>>> >
>>> > I'm looking at adding code to an external web app to trigger builds in
>>> > buildbot. I'd probably like to not have to use a webstatus, so I
>>> > figured that doing something via pb might work.
>>> >
>>> > Has anyone done that already and would like to share some code?

Well, I've "written" (as in stole from chromium) a scheduler that
exposes an "rest api" (as in single uri for now) and accepts posts
with JSON. Currently it only accepts "builder" and "changeset", but I
expect it to expand.

See HttpApi class in
http://github.com/ella/cthulhubot/blob/master/cthulhubot/buildbot.py

No auth protection for it yet, but I doubt I'll write any - asi
cthulhubot is webapp on top of buildbot, it's more likely I'll just
accept connection from webapp server only.

Regards,

Almad




More information about the devel mailing list