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 +++++++++++++++++++++ yarns/500-build-fail.yarn | 2 ++ 2 files changed, 23 insertions(+) (limited to 'yarns') 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 ... } ... ] diff --git a/yarns/500-build-fail.yarn b/yarns/500-build-fail.yarn index bd6f22b..bc0a5ab 100644 --- a/yarns/500-build-fail.yarn +++ b/yarns/500-build-fail.yarn @@ -147,6 +147,7 @@ Also, there's a build with a log. ... "worker": "obelix", ... "project": "rome", ... "pipeline": "construct", + ... "parameters": {}, ... "status": 1, ... "log": "/logs/1" ... } @@ -162,6 +163,7 @@ Also, there's a build with a log. ... "worker": "obelix", ... "project": "rome", ... "pipeline": "construct", + ... "parameters": {}, ... "status": 1, ... "log": "/logs/1" ... } -- cgit v1.2.1