From 2fb35dbf240323ba5391937bc6c4fba895750029 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 13 Jan 2018 11:10:22 +0200 Subject: Add: move actions for a build into build resource This way the list is known later even if the pipeline spec is changed. --- yarns/500-build-fail.yarn | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'yarns/500-build-fail.yarn') diff --git a/yarns/500-build-fail.yarn b/yarns/500-build-fail.yarn index bc0a5ab..a88108c 100644 --- a/yarns/500-build-fail.yarn +++ b/yarns/500-build-fail.yarn @@ -91,8 +91,7 @@ Worker wants work and gets the first step to run. ... "fresh_workspace": true, ... "step": { ... "shell": "day 1" - ... }, - ... "step_index": 0 + ... } ... } Worker reports some build output. Note the exit code indicating @@ -147,6 +146,11 @@ Also, there's a build with a log. ... "worker": "obelix", ... "project": "rome", ... "pipeline": "construct", + ... "actions": [ + ... { "shell": "day 1" }, + ... { "shell": "day 2" } + ... ], + ... "current_action": null, ... "parameters": {}, ... "status": 1, ... "log": "/logs/1" @@ -163,6 +167,11 @@ Also, there's a build with a log. ... "worker": "obelix", ... "project": "rome", ... "pipeline": "construct", + ... "actions": [ + ... { "shell": "day 1" }, + ... { "shell": "day 2" } + ... ], + ... "current_action": null, ... "parameters": {}, ... "status": 1, ... "log": "/logs/1" -- cgit v1.2.1