All pages

Pipeline B: The "Assembly Line" (Your Main Pipeline)

Your main azure-pipelines.yml — optimized for speed, with conditional environment selection and no pr: block.

Main azure-pipelines.yml — runs on every code push and PR.

trigger:
  branches:
    include: ["main", "develop"]

stages:
  - stage: Build
    jobs:
      - template: stages/build.yml
  - stage: Deploy
    dependsOn: Build
    condition: >
      and(not(or(failed(), canceled())), ne(variables['Build.Reason'], 'PullRequest'))
Environment Approvals
[PROJECT]-app-prod Required
[PROJECT]-app-dev-ci None
Pipeline B: The "Assembly Line" (Your Main Pipeline) | condurachi.ro