I have created a build pipeline for Azure data factory in DevOps which will fetch the files from an azure repo.
Before deploying the changes i would like to replace few string values in some of the files located in the build artifact.
Below mentioned are the steps i followed.
- Added a shell script file in the root folder of repository.
- Created a build pipeline pointing to the repository branch which needs to be deployed.
- Created a release pipeline which takes the build artifact.
- Added an shell script in the agent job for replacing few string values from the file in the repo.
Below is the screenshot for repository structure.
After publishing the artifact in the build pipeline, below is the structure of published artifact in the pipeline.
I have added a sample shell script to the Agent job which is already in the artifact, as shown below
while running the release I am getting the below error regarding the path as shown below
How to update the files in the artifact by replacing the string values, using power shell. Does anyone have an idea how to point to the files in the artifact and run a replace script. If you could share a sample replace script by selecting the file name, it will be helpful.