From 22a1e56bd592bfb3a122c0c8bd45978791d4518b Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 29 Nov 2017 18:33:34 +0100 Subject: Add: fresh_workspace field to yarn work responses --- yarns/400-build.yarn | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'yarns/400-build.yarn') diff --git a/yarns/400-build.yarn b/yarns/400-build.yarn index ec3e8e5..4591459 100644 --- a/yarns/400-build.yarn +++ b/yarns/400-build.yarn @@ -120,6 +120,7 @@ be in the path or can we get it in the access token?** ... "parameters": { ... "foo": "bar" ... }, + ... "fresh_workspace": true, ... "step": { ... "shell": "day 1" ... }, @@ -138,6 +139,7 @@ be in the path or can we get it in the access token?** ... "parameters": { ... "foo": "bar" ... }, + ... "fresh_workspace": true, ... "step": { ... "shell": "day 1" ... }, @@ -167,6 +169,7 @@ User can now see pipeline is running and which worker is building it. ... "parameters": { ... "foo": "bar" ... }, + ... "fresh_workspace": true, ... "step_index": 0, ... "step": { ... "shell": "day 1" @@ -225,6 +228,7 @@ Still the same job, since the first build step didnt't finish. ... "parameters": { ... "foo": "bar" ... }, + ... "fresh_workspace": true, ... "step": { ... "shell": "day 1" ... }, @@ -272,6 +276,7 @@ Now there's another step to do. ... "parameters": { ... "foo": "bar" ... }, + ... "fresh_workspace": false, ... "step": { ... "shell": "day 2" ... }, @@ -293,6 +298,7 @@ User sees changed status. ... "parameters": { ... "foo": "bar" ... }, + ... "fresh_workspace": false, ... "step_index": 1, ... "step": { ... "shell": "day 2" @@ -383,6 +389,7 @@ Start build again. This should become build number 2. ... "parameters": { ... "foo": "bar" ... }, + ... "fresh_workspace": true, ... "step": { ... "shell": "day 1" ... }, -- cgit v1.2.1