diff options
author | Lars Wirzenius <lwirzenius@wikimedia.org> | 2019-07-19 20:14:06 +0300 |
---|---|---|
committer | Lars Wirzenius <lwirzenius@wikimedia.org> | 2019-07-19 20:14:06 +0300 |
commit | 37311766b488a6325abd3a8f486072e0d0e6485c (patch) | |
tree | 61efc715183317160018b144b5d41d496711174b /gitlab.md | |
parent | 9b52055d3a2fbac4b2287cc51b2bda1f8ac0e4b9 (diff) | |
download | wmf-ci-arch-37311766b488a6325abd3a8f486072e0d0e6485c.tar.gz |
Add: controller /status, change how access control is done
For reasons that I don't understand, the old way didn't work, as it
resulted in all routes in Bottle being the same route. I think it's a
bug in Bottle, but I didn't get to the root cause. Now it works by
installing a Bottle plugin to do the access check. In some ways, it's
a cleaner way, anyway.
Diffstat (limited to 'gitlab.md')
-rw-r--r-- | gitlab.md | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -70,10 +70,29 @@ use them, and don't have to learn stuff to get started. * Simple HTTP API * Endpoint: POST /cd, body specifies which repo and ref to build and - deploy; queues the build + deploy; queues the build, the queued build will be visible via the + /status endpoint + + { + "repo": "...", + "ref": "..." + "artifact": "..." + } + * Endpoint: GET /status, which lists what jobs (posts to /cd) are queued, or running, or finished + { + "builds": [ + "id1": {"repo":"...", "ref":"...", "artifact":"..."}, + "id2": {"repo":"...", "ref":"...", "artifact":"..."}, + "id3": {"repo":"...", "ref":"...", "artifact":"..."}, + ] + "queued": ["id1", ...] + "building": ["id2", ...] + "finished": ["id3", ...] + } + ## VCS worker * Simple HTTP API |