summaryrefslogtreecommitdiff
path: root/yarns/400-build.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-04-15 18:24:13 +0300
committerLars Wirzenius <liw@liw.fi>2018-04-15 18:24:13 +0300
commitcdfad21af8cc012aa561eb7e2681dd362e017d98 (patch)
treec13ded9919c32e57dc7db7b9922e5f5a4a78da4a /yarns/400-build.yarn
parentf3b1a5ee1f737ad5325dcc14cf7e0ac6f76d59d2 (diff)
downloadick2-cdfad21af8cc012aa561eb7e2681dd362e017d98.tar.gz
Add: build_number to work resource
Diffstat (limited to 'yarns/400-build.yarn')
-rw-r--r--yarns/400-build.yarn13
1 files changed, 13 insertions, 0 deletions
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",