Release pipeline
The last pipeline is the release pipeline. Since the goal is to deploy with one pipeline run to different environments, this pipeline will be a bit more complex than the other two. We have to use different stages for different environments.
ADO
We also have to configure the build pipeline as a resource so that we can reuse the created solution file artifact.
To achieve this, we replace the whole file with the following YAML:
trigger: none pr: none resources: pipelines: - pipeline: buildPipeline source: 'Build Solution' trigger: none stages:
In the resources part, it is important that the value of the source
parameter exactly matches the name of your build pipeline.
After that, there is a setup per stage. Usually, we at least have Test and Production, but there could be other environments in between or after that. For example, a UAT...