diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-04-19 22:31:01 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-04-19 22:31:01 +0300 |
commit | f11a8ecd409f280759af7227db52b1e87e389092 (patch) | |
tree | 191dc9e4dda2444fb65bcf097056ef37d5a685bc /yarns/500-build-fail.yarn | |
parent | 04e899ded340bc0fd3afd6b0a62dff22c182e735 (diff) | |
download | ick2-f11a8ecd409f280759af7227db52b1e87e389092.tar.gz |
Change: trigger a project, build all pipelines in the project
Diffstat (limited to 'yarns/500-build-fail.yarn')
-rw-r--r-- | yarns/500-build-fail.yarn | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/yarns/500-build-fail.yarn b/yarns/500-build-fail.yarn index 95fcd5e..0a12178 100644 --- a/yarns/500-build-fail.yarn +++ b/yarns/500-build-fail.yarn @@ -33,8 +33,8 @@ Set up the controller. AND an access token for user with scopes ... uapi_pipelines_post ... uapi_projects_post - ... uapi_projects_id_pipelines_id_put - ... uapi_projects_id_pipelines_id_get + ... uapi_projects_id_status_put + ... uapi_projects_id_status_get ... uapi_projects_id_builds_get ... uapi_workers_id_get ... uapi_builds_get @@ -72,9 +72,9 @@ Register a worker. ... } THEN result has status code 201 -Trigger build. First with an invalid status, then a real one. +Trigger build. - WHEN user makes request PUT /projects/rome/pipelines/construct + WHEN user makes request PUT /projects/rome/status ... with a valid token and body { "status": "triggered" } THEN result has status code 200 @@ -89,7 +89,6 @@ Worker wants work and gets the first step to run. ... "log": "/logs/rome/1", ... "worker": "obelix", ... "project": "rome", - ... "pipeline": "construct", ... "parameters": {}, ... "step": { ... "action": "create_workspace" @@ -104,7 +103,6 @@ failure. ... "build_id": "rome/1", ... "worker": "obelix", ... "project": "rome", - ... "pipeline": "construct", ... "exit_code": 1, ... "stdout": "", ... "stderr": "eek!", @@ -131,7 +129,7 @@ User sees changed status. The pipeline status indicates it's idle. - WHEN user makes request GET /projects/rome/pipelines/construct + WHEN user makes request GET /projects/rome/status THEN result has status code 200 AND body matches { "status": "idle" } @@ -148,7 +146,6 @@ Also, there's a build with a log. ... "log": "/logs/rome/1", ... "worker": "obelix", ... "project": "rome", - ... "pipeline": "construct", ... "actions": [ ... { "action": "create_workspace" }, ... { "shell": "day 1" }, @@ -170,7 +167,6 @@ Also, there's a build with a log. ... "log": "/logs/rome/1", ... "worker": "obelix", ... "project": "rome", - ... "pipeline": "construct", ... "actions": [ ... { "action": "create_workspace" }, ... { "shell": "day 1" }, |