summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Holland <william.holland@codethink.co.uk>2015-09-30 23:43:17 +0100
committerWill Holland <william.holland@codethink.co.uk>2015-09-30 23:43:17 +0100
commit90a0ac821b24c0ad3745f2c0d4a2a2eb628ab8b9 (patch)
tree8ecf496ed9caeb1ce38a4cf557889dd9cb3bd037
parentc62b7c897f993f10792bc9606554ff7a4b86acc8 (diff)
downloadciatlib-90a0ac821b24c0ad3745f2c0d4a2a2eb628ab8b9.tar.gz
Fix adding only names of steps
-rw-r--r--ciatlib/master.py10
1 files changed, 9 insertions, 1 deletions
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)