0
votes

I am trying to setup CI/CD pipeline with Azure DevOps. My requirement is to setup task in release stage to edit or transform few files (XML and other text files according to the customer) before every deployment.

e.g. to edit pom.xml file to edit artifact id before every deployment.

How and where I can setup this task?

1

1 Answers

1
votes

In the marketplace there are few extensions that can replace strings in files with other strings (the most popular is the "Replace Tokens"), you can install the extension and use it during the release pipeline.

Another option, write a small PowerShell script that replace the strings and in the release use the PowerShell task.