add option to pass additional information through
This commit is contained in:
parent
7b04453763
commit
e9c74215ab
1 changed files with 7 additions and 0 deletions
|
@ -19,6 +19,7 @@ class DevopsBuild:
|
||||||
self.project_root_path = config['project_root_path']
|
self.project_root_path = config['project_root_path']
|
||||||
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.stack = {}
|
||||||
self.project = project
|
self.project = project
|
||||||
project.set_property('devops_build', self)
|
project.set_property('devops_build', self)
|
||||||
|
|
||||||
|
@ -35,3 +36,9 @@ class DevopsBuild:
|
||||||
def initialize_build_dir(self):
|
def initialize_build_dir(self):
|
||||||
run('rm -rf ' + self.build_path(), shell=True)
|
run('rm -rf ' + self.build_path(), shell=True)
|
||||||
run('mkdir -p ' + 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]
|
||||||
|
|
Loading…
Reference in a new issue