summaryrefslogtreecommitdiff
path: root/yarns/500-build-fail.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-01-13 15:06:15 +0200
committerLars Wirzenius <liw@liw.fi>2018-01-14 22:23:47 +0200
commitefba85dcfa234b40160864e6eeddd472fb9853a9 (patch)
tree24123be0482f40f877a1693dff91508f11c83c3c /yarns/500-build-fail.yarn
parentb1a4f39271979b1f1f9e461d8f97c2f01b6ab407 (diff)
downloadick2-efba85dcfa234b40160864e6eeddd472fb9853a9.tar.gz
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.
Diffstat (limited to 'yarns/500-build-fail.yarn')
-rw-r--r--yarns/500-build-fail.yarn5
1 files changed, 3 insertions, 2 deletions
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" }
... ],