From 90a0ac821b24c0ad3745f2c0d4a2a2eb628ab8b9 Mon Sep 17 00:00:00 2001 From: Will Holland Date: Wed, 30 Sep 2015 23:43:17 +0100 Subject: Fix adding only names of steps --- ciatlib/master.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ciatlib/master.py b/ciatlib/master.py index 8375009..42d26a2 100644 --- a/ciatlib/master.py +++ b/ciatlib/master.py @@ -57,6 +57,8 @@ Publish = Step( ('buildslave_scripts_sha','no buildslave-scripts SHA given'), ('definitions_sha','no definitions SHA given')]) +Steps = [Build,Deploy,Test,Publish] + class Column: def add_get_definitions(self,ref): @@ -161,5 +163,11 @@ def pipeline_from_dict(_dict): candidate_refs = _dict['candidate-refs'] slave_type = _dict['slave-type'] clusters = _dict['clusters'] - steps = _dict['steps'] + str_steps = _dict['steps'] + steps = [] + for step in str_steps: + for S in Steps: + if step == step.name: + steps.append(S) + break return Pipeline(name,candidate_refs,slave_type,clusters,steps) -- cgit v1.2.1