In this blog we will learn how to share the runtime variables across multiple stages, jobs.
In ADO this is referenced as the dependencies and we can use for below use case.
You should know the basic for ADO yaml. If you are new to YAML here is the beginner's guide.
Assume we have to define some variables that can defined at runtime which is further required to pass -->
Within Same Job Different Steps
Within Same Stage Different Jobs
Within Different Stage
We can use the dependencies keyword for referring the previous stage and jobs