From d47dc3a2a3c09d3fdc138d25fd077521582c5a42 Mon Sep 17 00:00:00 2001 From: jem Date: Sat, 7 Mar 2020 15:07:14 +0100 Subject: [PATCH] make build accessable --- src/main/python/ddadevops/devops_build.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/python/ddadevops/devops_build.py b/src/main/python/ddadevops/devops_build.py index f2f2893..74e45ee 100644 --- a/src/main/python/ddadevops/devops_build.py +++ b/src/main/python/ddadevops/devops_build.py @@ -10,6 +10,8 @@ def create_devops_build_config(stage, project_root_path, build_commons_path, mod 'module': module, 'build_dir_name': build_dir_name} +def get_devops_build(project): + return project.get_property('devops_build') class DevopsBuild: @@ -20,7 +22,7 @@ class DevopsBuild: self.module = config['module'] self.build_dir_name = config['build_dir_name'] self.project = project - project.set_property("devops_build", self) + project.set_property('devops_build', self) def name(self): return self.project.name