From efba85dcfa234b40160864e6eeddd472fb9853a9 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 13 Jan 2018 15:06:15 +0200 Subject: Add: prepend a create_workspace action to pipelines This replaces the old fresh_workspace attribute of work resources. It's better this way, because it moves policy from worker-manager to controller, where it belongs. --- yarns/500-build-fail.yarn | 5 +++-- 1 file changed, 3 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 1c2a37c..433c3e0 100644 --- a/yarns/500-build-fail.yarn +++ b/yarns/500-build-fail.yarn @@ -88,9 +88,8 @@ Worker wants work and gets the first step to run. ... "project": "rome", ... "pipeline": "construct", ... "parameters": {}, - ... "fresh_workspace": true, ... "step": { - ... "shell": "day 1" + ... "action": "create_workspace" ... } ... } @@ -147,6 +146,7 @@ Also, there's a build with a log. ... "project": "rome", ... "pipeline": "construct", ... "actions": [ + ... { "action": "create_workspace" }, ... { "shell": "day 1" }, ... { "shell": "day 2" } ... ], @@ -168,6 +168,7 @@ Also, there's a build with a log. ... "project": "rome", ... "pipeline": "construct", ... "actions": [ + ... { "action": "create_workspace" }, ... { "shell": "day 1" }, ... { "shell": "day 2" } ... ], -- cgit v1.2.1