How to pass variable from build to release in azure build to release pipeline: We have variable in CI pipeline --> we have to pass that variable in Release pipeline--> that variable has to set in another yaml file. is this possible?
For now, we could only set a variable in a variable group as a static value and use it in both build and release.
Detail ways please refer Marina's answer in this question: VSTS : Can I access the Build variables from Release definition?
But according to your description, what you want is to set the variable during the build and then use it in the release pipeline.
The is no official way to pass variables follow this. As a workaround, you could use some 3rd-partly extension, store the values in a file (json, xml, yaml, what have you) and attach that as a Build Artifact. That way you can read the file in the release and set the variable again.
Take a look at this similar issue: How to get the variable value in TFS/AzureDevOps from Build to Release Pipeline?
© 2022 - 2024 — McMap. All rights reserved.