I have variables in azure devops pipeline. I have json files on the server. I want to replace the variables values in json file from the variables in azure devops pipeline. I used file transform task. My file is on the server at location “C:agent_workr1ahelm-chartapplicationserviceapplicationserviceappsettings.config.json”. I have passed the same location in package or folder. However it gives error ##[warning]Can’t find loc string for key: Invalidwebapppackageorfolderpathprovided and the task fails. I am not sure why it is not working.
Hi team,
I have variables in azure devops pipeline. I have json files on the server. I want to replace the variables values in json file from the variables in azure devops pipeline. I used file transform task. My file is on the server at location “C:agent_workr1ahelm-chartapplicationserviceapplicationserviceappsettings.config.json”. I have passed the same location in package or folder. However it gives error ##[warning]Can’t find loc string for key: Invalidwebapppackageorfolderpathprovided and the task fails. I am not sure why it is not working.
Can someone please suggest
File transform for me:
steps:
- task: FileTransform@1
displayName: ‘File Transform: ‘
inputs:
folderPath: ‘$(System.DefaultWorkingDirectory)///**/appsettings.config.json’
fileType: json
2