summaryrefslogtreecommitdiff
path: root/source/bottlerock.py
diff options
context:
space:
mode:
authorWill Holland <william.holland@codethink.co.uk>2015-09-16 11:16:51 +0100
committerWill Holland <william.holland@codethink.co.uk>2015-09-16 11:16:51 +0100
commitceb25b8368681bddd9e273df205aede012bf7f77 (patch)
tree90468218be96b40096aba35932fae4a3a0fb3525 /source/bottlerock.py
parentd5bf8f1ed2661c00cf55ef071410c2d6b736b4dd (diff)
downloadorchestration-ceb25b8368681bddd9e273df205aede012bf7f77.tar.gz
Pass SHAs of state when build starts forwards
The SHAs of definitions, buildslave-scripts and ciat-testing are passed along the pipeline for consistency
Diffstat (limited to 'source/bottlerock.py')
-rw-r--r--source/bottlerock.py17
1 files changed, 16 insertions, 1 deletions
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():