From f11a8ecd409f280759af7227db52b1e87e389092 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 19 Apr 2018 22:31:01 +0300 Subject: Change: trigger a project, build all pipelines in the project --- yarns/500-build-fail.yarn | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'yarns/500-build-fail.yarn') 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" }, -- cgit v1.2.1