diff options
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 |