Elmon
Elmon

Reputation: 1

Skip a stage in a pipeline using azure devops

I have a build pipeline with 3 stages

  1. Build
  2. Deploy
  3. E2E Test

Each stage has to reserve a pool then run the jobs.

I want to run the 3rd stage only when there is a changing related to the frontend folder. My Question is: Is there is any predefined configuration to know if there is any file changed and to skip the stage without reserve a pool?

I tried a git command but this need to reserve a pool before running the script.

Upvotes: 0

Views: 195

Answers (1)

andrew.fox
andrew.fox

Reputation: 7941

Make it a separate pipeline that only fires ("trigger:") when a specific directory is changed.

Upvotes: 0

Related Questions