Open HoussemDellai opened 4 years ago
The documentation for this is well-hidden: https://docs.microsoft.com/en-us/azure/devops/pipelines/process/expressions?view=azure-devops&branch=pr-en-us-1603#job-to-job-dependencies-across-stages
Other parts of ADO documentation only cover output sharing inside the job and stage only.
Edit: I did some experimentation and using script output variable as an input of stage condition is impossible. Therefore there will be a deployment stage that skips one or multiple (deployment) jobs.
One can use changesPresent
to see if apply is needed.
Actually this is now possible!
Here is a sample pipeline that can do that:
And here is a video I made for that (skipping terraform apply, but not across stages here) : Video: Skip terraform apply in Azure DevOps pipelines