make build accessable

This commit is contained in:
jem 2020-03-07 15:07:14 +01:00
parent 9d9aee79d3
commit d47dc3a2a3

View file

@ -10,6 +10,8 @@ def create_devops_build_config(stage, project_root_path, build_commons_path, mod
'module': module, 'module': module,
'build_dir_name': build_dir_name} 'build_dir_name': build_dir_name}
def get_devops_build(project):
return project.get_property('devops_build')
class DevopsBuild: class DevopsBuild:
@ -20,7 +22,7 @@ class DevopsBuild:
self.module = config['module'] self.module = config['module']
self.build_dir_name = config['build_dir_name'] self.build_dir_name = config['build_dir_name']
self.project = project self.project = project
project.set_property("devops_build", self) project.set_property('devops_build', self)
def name(self): def name(self):
return self.project.name return self.project.name