Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Pass the variables as a parameter for a Release build in Azure DevOps pipeline  (Read 64711 times)

0 Members and 1 Guest are viewing this topic.

Santosh

    Topic Starter


    Rookie

    • Experience: Beginner
    • OS: Windows 10
    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"
                     },
                 ]
     }