summaryrefslogtreecommitdiff
path: root/gitlab.md
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab.md')
-rw-r--r--gitlab.md21
1 files changed, 20 insertions, 1 deletions
diff --git a/gitlab.md b/gitlab.md
index 9dc2fa8..d3f7c6a 100644
--- a/gitlab.md
+++ b/gitlab.md
@@ -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