diff options
author | Will Holland <william.holland@codethink.co.uk> | 2015-10-01 08:52:27 +0100 |
---|---|---|
committer | Will Holland <william.holland@codethink.co.uk> | 2015-10-01 08:52:27 +0100 |
commit | d06172ee8427cb000506ec7297b8d3d0203450f1 (patch) | |
tree | 321daa2764b977a7dab8983fe75624b181e57ecd | |
parent | cc5dab8af024029d66b0cda2e03d9bc76fd6ff35 (diff) | |
download | ciatlib-d06172ee8427cb000506ec7297b8d3d0203450f1.tar.gz |
Pass candidate ref as get_definitions
-rw-r--r-- | ciatlib/master.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ciatlib/master.py b/ciatlib/master.py index 6bc0875..4786c09 100644 --- a/ciatlib/master.py +++ b/ciatlib/master.py @@ -151,6 +151,8 @@ class Pipeline: column_name = "%s %s" % (self.name, step.name) category = column_name self.categories.append(category) + if step.get_definitions: + get_definitions = self.candidate_refs[0] self.columns.append(Column( name = column_name, source_repo = BUILD_SLAVE_SCRIPTS, @@ -159,7 +161,7 @@ class Pipeline: slavenames = self.slavenames, properties = step.properties, timeout = step.timeout, - get_definitions = step.get_definitions)) + get_definitions = get_definitions)) def pipeline_from_dict(_dict): ''' given a dict of a pipeline return an object ''' |