azure-devopsyamlazure-pipelinesazure-pipelines-yaml

Stage of pipeline gets skipped even tho it doesnt have any conditions


Guys Im currently working on an azure devops yaml pipeline, and i have a weird problem. For some reason on of my stages (marked in red) gets skipped, even tho it doesnt have any conditions definded. structure of yaml pipeline Heres the code of the stage and the previous stage:

Stage before the one that gets skipped: stage before

Stage that gets skipped: Code of skipped Any Ideas what the problem could be?


Solution

  • The default behaviour if you don't specify a condition is to only run if all previous steps/jobs/tasks in the dependency tree have succeeded. And since you have a task in the previous steps which is skipping, the following stage is not running.

    I think you can add something like this:

    dependsOn: Download_from_source
    condition: succeeded('Download_from_source')