InterviewSolution
Saved Bookmarks
| 1. |
Solve : Pass the variables as a parameter for a Release build in Azure DevOps pipeline? |
|
Answer» PASS the variables as a parameter for a Release build in Azure DevOps pipeline. I have a file named "Generate-manifest.ps1" file which after executing it creates manifest.json file which is a collection of different packages from artifactory. Now I want to rename a file with some version values like "1.0.0" EG: manifest-1.0.0.json file and use it for the next build. Basically I have a REPO named Deploy-scripts which contains Generate-manifest.ps1 script. Once we execute them it will create manifest.json file. But I want to pass some variables during runtime in such a way that manifest.json file should UPDATE with version info. manifest.json: Code: [Select]{ "version": "1.0.0", "TIMESTAMP": "2021-05-07T09:41:34+00:00", "packages": [ { "name": "data-service", "type": "docker-image", "version": "REL-1.0.5367" }, { "name": "feedback-service", "type": "docker-image", "version": "REL-1.0.6099" }, ] } |
|