diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-11-29 18:33:34 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-11-29 20:17:55 +0100 |
commit | 22a1e56bd592bfb3a122c0c8bd45978791d4518b (patch) | |
tree | dbe70201735eb00e75f6ab7e2c00f879cb330f16 | |
parent | e323455e21d8d9141ada6f32ba1f609291c077c7 (diff) | |
download | ick2-22a1e56bd592bfb3a122c0c8bd45978791d4518b.tar.gz |
Add: fresh_workspace field to yarn work responses
-rw-r--r-- | yarns/400-build.yarn | 7 | ||||
-rw-r--r-- | yarns/500-build-fail.yarn | 1 |
2 files changed, 8 insertions, 0 deletions
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" ... }, diff --git a/yarns/500-build-fail.yarn b/yarns/500-build-fail.yarn index f0afa32..bd6f22b 100644 --- a/yarns/500-build-fail.yarn +++ b/yarns/500-build-fail.yarn @@ -88,6 +88,7 @@ Worker wants work and gets the first step to run. ... "project": "rome", ... "pipeline": "construct", ... "parameters": {}, + ... "fresh_workspace": true, ... "step": { ... "shell": "day 1" ... }, |