From cdfad21af8cc012aa561eb7e2681dd362e017d98 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 15 Apr 2018 18:24:13 +0300 Subject: Add: build_number to work resource --- yarns/400-build.yarn | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'yarns/400-build.yarn') diff --git a/yarns/400-build.yarn b/yarns/400-build.yarn index bd44122..3ee30a6 100644 --- a/yarns/400-build.yarn +++ b/yarns/400-build.yarn @@ -118,6 +118,7 @@ the worker to construct a new workspace for the build. AND body matches ... { ... "build_id": "rome/1", + ... "build_number": 1, ... "log": "/logs/rome/1", ... "worker": "obelix", ... "project": "rome", @@ -135,6 +136,7 @@ the worker to construct a new workspace for the build. AND body matches ... { ... "build_id": "rome/1", + ... "build_number": 1, ... "log": "/logs/rome/1", ... "worker": "obelix", ... "project": "rome", @@ -163,6 +165,7 @@ User can now see pipeline is running and which worker is building it. ... "worker": "obelix", ... "doing": { ... "build_id": "rome/1", + ... "build_number": 1, ... "log": "/logs/rome/1", ... "worker": "obelix", ... "project": "rome", @@ -230,6 +233,7 @@ Worker requests more work, and gets the first actual build step. AND body matches ... { ... "build_id": "rome/1", + ... "build_number": 1, ... "log": "/logs/rome/1", ... "worker": "obelix", ... "project": "rome", @@ -266,6 +270,7 @@ didnt't finish. AND body matches ... { ... "build_id": "rome/1", + ... "build_number": 1, ... "log": "/logs/rome/1", ... "worker": "obelix", ... "project": "rome", @@ -341,6 +346,7 @@ Now there's another step to do. AND body matches ... { ... "build_id": "rome/1", + ... "build_number": 1, ... "log": "/logs/rome/1", ... "worker": "obelix", ... "project": "rome", @@ -362,6 +368,7 @@ User sees changed status. ... "worker": "obelix", ... "doing": { ... "build_id": "rome/1", + ... "build_number": 1, ... "worker": "obelix", ... "project": "rome", ... "pipeline": "construct", @@ -469,6 +476,7 @@ Start build again. This should become build number 2. AND body matches ... { ... "build_id": "rome/2", + ... "build_number": 2, ... "log": "/logs/rome/2", ... "worker": "obelix", ... "project": "rome", @@ -543,6 +551,7 @@ Start build again. This should become build number 2. AND body matches ... { ... "build_id": "rome/2", + ... "build_number": 2, ... "log": "/logs/rome/2", ... "worker": "obelix", ... "project": "rome", @@ -705,6 +714,7 @@ Build the first project. WHEN worker-manager makes request POST /work with a valid token and body ... { ... "build_id": "first/1", + ... "build_number": 1, ... "worker": "obelix", ... "project": "first", ... "pipeline": "do_something", @@ -724,6 +734,7 @@ Build the first project. WHEN worker-manager makes request POST /work with a valid token and body ... { ... "build_id": "first/1", + ... "build_number": 1, ... "worker": "obelix", ... "project": "first", ... "pipeline": "do_something", @@ -894,6 +905,7 @@ Trigger both projects. WHEN asterix makes request POST /work with a valid token and body ... { ... "build_id": "first/1", + ... "build_number": 1, ... "worker": "asterix", ... "project": "first", ... "pipeline": "do_something", @@ -919,6 +931,7 @@ Trigger both projects. WHEN obelix makes request POST /work with a valid token and body ... { ... "build_id": "second/1", + ... "build_number": 1, ... "worker": "obelix", ... "project": "second", ... "pipeline": "do_something", -- cgit v1.2.1