From b995dfa59347fdc8a86fca174d31bcca77439c5a Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 5 Nov 2017 20:23:21 +0100 Subject: Add: POST /work --- yarns/400-build.yarn | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'yarns/400-build.yarn') diff --git a/yarns/400-build.yarn b/yarns/400-build.yarn index 7632f00..30e47c6 100644 --- a/yarns/400-build.yarn +++ b/yarns/400-build.yarn @@ -66,6 +66,7 @@ Register a worker. GIVEN an access token for worker-manager with scopes ... uapi_workers_post + ... uapi_work_post WHEN worker-manager makes request POST /workers ... { ... "worker": "obelix" @@ -127,6 +128,7 @@ User can now see pipeline is running and which worker is building it. ... { ... "worker": "obelix", ... "doing": { + ... "worker": "obelix", ... "project": "rome", ... "pipeline": "construct", ... "step_index": 0, @@ -149,7 +151,7 @@ Worker reports some build output. Note the null exit code. ... "stderr": "", ... "timestamp": "2017-10-27T17:08:49" ... } - THEN result has status code 200 + THEN result has status code 201 AND body matches { "result": "waiting for more" } Still the same job, since the first build step didnt't finish. -- cgit v1.2.1