From 4edb47ab2bfba9100db7ab97dd442abb5e12354d Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 26 Dec 2017 21:04:26 +0200 Subject: Add: parameters to build resources in yarns We want the build resources to remember what the actual parameters were, when the build ran. --- yarns/400-build.yarn | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'yarns/400-build.yarn') diff --git a/yarns/400-build.yarn b/yarns/400-build.yarn index 4591459..c8746b4 100644 --- a/yarns/400-build.yarn +++ b/yarns/400-build.yarn @@ -188,6 +188,9 @@ User can now see pipeline is running and which worker is building it. ... "worker": "obelix", ... "project": "rome", ... "pipeline": "construct", + ... "parameters": { + ... "foo": "bar" + ... }, ... "status": "building", ... "log": "/logs/1" ... } @@ -347,6 +350,9 @@ Also, there's a build with a log. ... "worker": "obelix", ... "project": "rome", ... "pipeline": "construct", + ... "parameters": { + ... "foo": "bar" + ... }, ... "status": 0, ... "log": "/logs/1" ... } @@ -362,6 +368,9 @@ Also, there's a build with a log. ... "worker": "obelix", ... "project": "rome", ... "pipeline": "construct", + ... "parameters": { + ... "foo": "bar" + ... }, ... "status": 0, ... "log": "/logs/1" ... } @@ -407,6 +416,9 @@ Start build again. This should become build number 2. ... "worker": "obelix", ... "project": "rome", ... "pipeline": "construct", + ... "parameters": { + ... "foo": "bar" + ... }, ... "status": 0 ... }, ... { @@ -415,6 +427,9 @@ Start build again. This should become build number 2. ... "worker": "obelix", ... "project": "rome", ... "pipeline": "construct", + ... "parameters": { + ... "foo": "bar" + ... }, ... "status": "building" ... } ... ] @@ -460,6 +475,9 @@ Start build again. This should become build number 2. ... "worker": "obelix", ... "project": "rome", ... "pipeline": "construct", + ... "parameters": { + ... "foo": "bar" + ... }, ... "status": 0 ... }, ... { @@ -468,6 +486,9 @@ Start build again. This should become build number 2. ... "worker": "obelix", ... "project": "rome", ... "pipeline": "construct", + ... "parameters": { + ... "foo": "bar" + ... }, ... "status": 0 ... } ... ] -- cgit v1.2.1