This Azure DevOps extension automates the process of replacing predefined patterns in files with specified values. This is particularly useful for dynamic configuration of files during build or release pipelines.
Features
Specify a file and replace patterns like #VARIABLE# (or anything of your choice) with desired values.
Fully configurable through Azure DevOps pipeline task inputs.
Supports both Build and Release pipelines.
CURRENTLY SUPPORTS ONLY SINGLE FILE BUT WILL BE SOON UPDATED TO SUPPORT MULTIPLE FILES!
Prerequisites
Azure DevOps Services or Azure DevOps Server
Appropriate permissions to add and run pipeline tasks
Usage
Add the task Pattern Match & Replacement to your pipeline.
Configure the following parameters:
File Path: Path to the file where replacements will occur.
Pattern: The regex or text pattern to replace (e.g., {{VARIABLE}}).
Replacement Value: The value to replace the pattern with.
Run the pipeline to see the changes reflected in the file.
For issues, feature requests, or questions, please create an issue in the GitHub repository or reach out at info@akhilsharma.top.
Contributing
This extension is maintained by Akhil Sharma. While the extension is free to use, any modifications, copies, or reuse of its code or functionality require prior written approval from the author.