From 9d4e01e2df83a108c2c44cc4471666b5cecf4c36 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 23 Apr 2018 13:27:22 +0300 Subject: Change: all actions must have a "where" --- yarns/500-build-fail.yarn | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'yarns/500-build-fail.yarn') diff --git a/yarns/500-build-fail.yarn b/yarns/500-build-fail.yarn index 0a12178..3b29499 100644 --- a/yarns/500-build-fail.yarn +++ b/yarns/500-build-fail.yarn @@ -48,8 +48,8 @@ Add up a project and its pipelines. ... { ... "pipeline": "construct", ... "actions": [ - ... { "shell": "day 1" }, - ... { "shell": "day 2" } + ... { "shell": "day 1", "where": "host" }, + ... { "shell": "day 2", "where": "host" } ... ] ... } THEN result has status code 201 @@ -91,7 +91,8 @@ Worker wants work and gets the first step to run. ... "project": "rome", ... "parameters": {}, ... "step": { - ... "action": "create_workspace" + ... "action": "create_workspace", + ... "where": "host" ... } ... } @@ -147,9 +148,9 @@ Also, there's a build with a log. ... "worker": "obelix", ... "project": "rome", ... "actions": [ - ... { "action": "create_workspace" }, - ... { "shell": "day 1" }, - ... { "shell": "day 2" } + ... { "where": "host", "action": "create_workspace" }, + ... { "where": "host", "shell": "day 1" }, + ... { "where": "host", "shell": "day 2" } ... ], ... "current_action": null, ... "parameters": {}, @@ -168,9 +169,9 @@ Also, there's a build with a log. ... "worker": "obelix", ... "project": "rome", ... "actions": [ - ... { "action": "create_workspace" }, - ... { "shell": "day 1" }, - ... { "shell": "day 2" } + ... { "where": "host", "action": "create_workspace" }, + ... { "where": "host", "shell": "day 1" }, + ... { "where": "host", "shell": "day 2" } ... ], ... "current_action": null, ... "parameters": {}, -- cgit v1.2.1