Trigger a new release as adding a build #521
-
Hi Why I cannot trigger release as I triggers build? It is possible to add -ReleaseParameters to -Add-VSTeamRelease |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
In Azure DevOps, build pipelines and release pipelines behave differently:
However, there are workarounds to pass variables to a release pipeline:
The rest API endpoint can be found here: https://learn.microsoft.com/en-us/rest/api/azure/devops/release/releases/create?view=azure-devops-rest-7.0&tabs=HTTP |
Beta Was this translation helpful? Give feedback.
-
Thank you for your answer |
Beta Was this translation helpful? Give feedback.
In Azure DevOps, build pipelines and release pipelines behave differently:
Build pipelines are designed to accept parameters at queue time because it's common to want to build the same codebase with different parameters. For example, you might want to build a debug version and a release version, or build for different platforms.
On the other hand, release pipelines are designed around the principle that a given release should be deployable to any environment without modification. This is why you can't pass parameters directly when you trigger a release.
However, there are workarounds to pass variables to a release pipeline:
Using build artifacts: You can store your parameters in a…