diff options
Diffstat (limited to 'ciatlib/master.py')
-rw-r--r-- | ciatlib/master.py | 17 |
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) |