🔥 3-day streak
Microsoft DevOps Engineer Expert79 / 138
Question 79 of 138
Your team's Azure DevOps YAML pipeline defines a variable 'imageTag' whose value depends on the branch that triggered the run. You need to reference this value in a template expression that conditionally includes an entire stage during pipeline compilation, before any job runs. The variable is set inside a script step using a logging command (##vso[task.setvariable]). During testing, the conditional stage never appears even when the branch condition should match. What is the root cause?
Reviewed for accuracy · Report an issueNext question