From e9c74215ab6e3ec53cf8dfc3595a5ab525184a0a Mon Sep 17 00:00:00 2001 From: jem Date: Fri, 17 Apr 2020 17:59:19 +0200 Subject: [PATCH] add option to pass additional information through --- src/main/python/ddadevops/devops_build.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/python/ddadevops/devops_build.py b/src/main/python/ddadevops/devops_build.py index 923bf18..b1bfad3 100644 --- a/src/main/python/ddadevops/devops_build.py +++ b/src/main/python/ddadevops/devops_build.py @@ -19,6 +19,7 @@ class DevopsBuild: self.project_root_path = config['project_root_path'] self.module = config['module'] self.build_dir_name = config['build_dir_name'] + self.stack = {} self.project = project project.set_property('devops_build', self) @@ -35,3 +36,9 @@ class DevopsBuild: def initialize_build_dir(self): run('rm -rf ' + self.build_path(), shell=True) run('mkdir -p ' + self.build_path(), shell=True) + + def put(self, key, value): + self.stack[key] = value + + def get(self, key): + return self.stack[key]