summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Holland <william.holland@codethink.co.uk>2015-10-01 10:10:30 +0100
committerWill Holland <william.holland@codethink.co.uk>2015-10-01 10:10:30 +0100
commitd27691da69c029c3e25149169abe1b61700d60f2 (patch)
tree3df5f7696894201b612d0e790223059343530133
parent474539b4d6a3459a7c0c7f439905ff90cd617c62 (diff)
downloadorchestration-d27691da69c029c3e25149169abe1b61700d60f2.tar.gz
Pass system to build trigger
-rw-r--r--source/bottlerock.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/source/bottlerock.py b/source/bottlerock.py
index a221e90..43642b4 100644
--- a/source/bottlerock.py
+++ b/source/bottlerock.py
@@ -91,7 +91,16 @@ def repo_update():
elif ref in candidate_refs:
# if a candidate ref changes then trigger that pipeline
pipeline = configure.pipeline_from_candidate_ref(ref)
- properties = {"ref":ref,"sha":sha,"pipeline":pipeline.name}
+ # TODO parse system from cluster properly
+ if 'base-system-armv8l64-cluster.morph' in pipeline.clusters:
+ system = 'base-system-armv8l64.morph'
+ else:
+ system = 'genivi-demo-platform-x86_64-generic.morph'
+ properties = {
+ "ref":ref,
+ "sha":sha,
+ "system": system,
+ "pipeline":pipeline.name}
return sendchange(
category = '%s Build' % pipeline.name,
properties = properties)