From ceb25b8368681bddd9e273df205aede012bf7f77 Mon Sep 17 00:00:00 2001 From: Will Holland Date: Wed, 16 Sep 2015 11:16:51 +0100 Subject: Pass SHAs of state when build starts forwards The SHAs of definitions, buildslave-scripts and ciat-testing are passed along the pipeline for consistency --- source/bottlerock.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'source/bottlerock.py') diff --git a/source/bottlerock.py b/source/bottlerock.py index 3909ee5..2a92c56 100644 --- a/source/bottlerock.py +++ b/source/bottlerock.py @@ -62,7 +62,22 @@ def build_complete(): return HTTPResponse( status=400, body="400: A system name is required") - return call_trigger('build_complete',system) + buildslave_scripts_sha = request.forms.get("buildslave_scripts_sha") + if not buildslave_scripts_sha: + return HTTPResponse( + status=400, + body="400: A buildslave_scripts_sha is required") + definitions_sha = request.forms.get("definitions_sha") + if not definitions_sha: + return HTTPResponse( + status=400, + body="400: A definitions_sha is required") + testing_sha = request.forms.get("testing_sha") + if not testing_sha: + return HTTPResponse( + status=400, + body="400: A testing_sha is required") + return call_trigger('build_complete',system,buildslave_scripts_sha,definitions_sha,testing_sha) @post('/deploy_complete') def deploy_complete(): -- cgit v1.2.1