summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Holland <william.holland@codethink.co.uk>2015-10-03 11:37:53 +0100
committerWill Holland <william.holland@codethink.co.uk>2015-10-03 11:37:53 +0100
commite4aed83f88c71c99caef47a68359fd224c72f6c8 (patch)
treeb923779073a86d37a4e3e5471fd6e6ed3c2ace09
parent22ee4254c74205ae27305dbc07f2a34d750edc98 (diff)
downloadciatlib-e4aed83f88c71c99caef47a68359fd224c72f6c8.tar.gz
Rename Deploy to Image(s)
-rw-r--r--ciatlib/master.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/ciatlib/master.py b/ciatlib/master.py
index 7c3daba..cc24e6f 100644
--- a/ciatlib/master.py
+++ b/ciatlib/master.py
@@ -30,8 +30,8 @@ Build = Step(
("pipeline","no pipeline given")],
timeout = 7200,
get_definitions = True)
-Deploy = Step(
- name = 'Deploy',
+Images = Step(
+ name = 'Image(s)',
trigger = 'deploy_trigger.sh',
properties = [
('system','no system give'),
@@ -61,7 +61,11 @@ Publish = Step(
('definitions_sha','no definitions SHA given'),
("pipeline","no pipeline given")])
-Steps = [Build,Deploy,Test,Publish]
+Steps = {
+ "Build": Build,
+ "Image(s)": Images,
+ "Test": Test,
+ "Publish": Publish}
class Column:
@@ -156,7 +160,7 @@ class Pipeline:
source_repo = BUILD_SLAVE_SCRIPTS,
category = category,
trigger = step.trigger,
- slavenames = self.slavenames,
+ slavenames = [self.slavenames],
properties = step.properties,
timeout = step.timeout,
get_definitions = get_definitions))
@@ -170,8 +174,5 @@ def pipeline_from_dict(_dict):
str_steps = _dict['steps']
steps = []
for step in str_steps:
- for S in Steps:
- if step == S.name:
- steps.append(S)
- break
+ steps.append(Steps[step])
return Pipeline(name,candidate_refs,slave_type,clusters,steps)