From 553c10959228f416b2329bfcd2d13775210ac75d Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 26 Nov 2017 14:01:17 +0100 Subject: Add: extend yarns to check project parameters --- yarns/400-build.yarn | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'yarns/400-build.yarn') diff --git a/yarns/400-build.yarn b/yarns/400-build.yarn index 30dbc5b..6918459 100644 --- a/yarns/400-build.yarn +++ b/yarns/400-build.yarn @@ -43,6 +43,9 @@ Add up a project. WHEN user makes request POST /projects with a valid token and body ... { ... "project": "rome", + ... "parameters": { + ... "foo": "bar" + ... }, ... "pipelines": [ ... { ... "name": "construct", @@ -100,6 +103,9 @@ be in the path or can we get it in the access token?** ... "worker": "obelix", ... "project": "rome", ... "pipeline": "construct", + ... "parameters": { + ... "foo": "bar" + ... }, ... "step": { ... "shell": "day 1" ... }, @@ -115,6 +121,9 @@ be in the path or can we get it in the access token?** ... "worker": "obelix", ... "project": "rome", ... "pipeline": "construct", + ... "parameters": { + ... "foo": "bar" + ... }, ... "step": { ... "shell": "day 1" ... }, @@ -141,6 +150,9 @@ User can now see pipeline is running and which worker is building it. ... "worker": "obelix", ... "project": "rome", ... "pipeline": "construct", + ... "parameters": { + ... "foo": "bar" + ... }, ... "step_index": 0, ... "step": { ... "shell": "day 1" @@ -196,6 +208,9 @@ Still the same job, since the first build step didnt't finish. ... "worker": "obelix", ... "project": "rome", ... "pipeline": "construct", + ... "parameters": { + ... "foo": "bar" + ... }, ... "step": { ... "shell": "day 1" ... }, @@ -240,6 +255,9 @@ Now there's another step to do. ... "worker": "obelix", ... "project": "rome", ... "pipeline": "construct", + ... "parameters": { + ... "foo": "bar" + ... }, ... "step": { ... "shell": "day 2" ... }, @@ -258,6 +276,9 @@ User sees changed status. ... "worker": "obelix", ... "project": "rome", ... "pipeline": "construct", + ... "parameters": { + ... "foo": "bar" + ... }, ... "step_index": 1, ... "step": { ... "shell": "day 2" @@ -345,6 +366,9 @@ Start build again. This should become build number 2. ... "worker": "obelix", ... "project": "rome", ... "pipeline": "construct", + ... "parameters": { + ... "foo": "bar" + ... }, ... "step": { ... "shell": "day 1" ... }, -- cgit v1.2.1