File Content Replacer : dynamic "Replace with" value
Hi,
I have a use-case which I would like to change a specific file with a value that is depending on the value of another TeamCity value.
F.e.
The driving variable is f.e. "Environment" . this is set to "Production" for specific Production build configuration.
An example of a specific replacement would be :
if %Environment equals "Production" then replace value with "MyProductionID" else replace it with "NonProductionID"
The Replace with value is dynamic and depends on the value of another variable.. All variables are known at definition time.
What is possible here? I want to avoid creating a custom Powershell script / task to achieve this.
Best regards,
Jens
Please sign in to leave a comment.
Anyone any ideas?