Skip to content
Snippets Groups Projects
Commit b64a05a9 authored by Stefan Froehlich's avatar Stefan Froehlich
Browse files

Task #9709: Added environment variable expansion in string replacement feature...

Task #9709: Added environment variable expansion in string replacement feature of the generic pipeline.
parent ec175f19
No related branches found
No related tags found
No related merge requests found
...@@ -519,8 +519,10 @@ class GenericPipeline(control): ...@@ -519,8 +519,10 @@ class GenericPipeline(control):
replacedict[str(check).lstrip('!').lstrip(' ')] = str(self.parset[check]) replacedict[str(check).lstrip('!').lstrip(' ')] = str(self.parset[check])
if str(check).startswith('pipeline.replace.'): if str(check).startswith('pipeline.replace.'):
replacedict[str(check).replace('pipeline.replace.', '').lstrip(' ')] = str(self.parset[check]) replacedict[str(check).replace('pipeline.replace.', '').lstrip(' ')] = str(self.parset[check])
#self.logger.info( 'REPLACEDICT: ') #expand environment variables
#self.logger.info(replacedict) for k, v in replacedict.items():
replacedict[k] = os.path.expandvars(v)
for check in self._keys(self.parset): for check in self._keys(self.parset):
for k, v in reversed(replacedict.items()): for k, v in reversed(replacedict.items()):
if '{{ '+k+' }}' in str(self.parset[check]): if '{{ '+k+' }}' in str(self.parset[check]):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment