VSTS : Can I access the Build variables from Release definition?

后端 未结 3 1795
被撕碎了的回忆
被撕碎了的回忆 2020-12-10 20:31

In VSTS CI/CD , I am setting some variable\'s value in a Powershell task in CI. During CD I want to access that variable\'s value to do something , lets say echo.

I

3条回答
  •  星月不相逢
    2020-12-10 20:46

    Check out the Azure DevOps extension Variable Tools for Azure DevOps Services.

    In the "build pipeline" you can create a JSON file using "save variables". This file needs to be published as artifact or with existing artifact.

    In the "release pipeline" you can restore the variables using "load variables" from the JSON file.

提交回复
热议问题