2
votes

When I create a pipeline PR trigger against master I always get two jobs being created:

One job says : "Individual CI for" the other job says : "PR automated for"

One job is always queued behind the other and the PR waits for both of them to be run which is annoying because it doubles the build time. Why are two jobs spawned? Is this a bug in Azure DevOps pipelines? Any idea how I can fix it?

My YAML file:

pr:
- master
1

1 Answers

4
votes

YAML pipelines are configured by default with a CI trigger on all branches. You can opt out of CI triggers entirely by specifying trigger: none:

trigger:
  - none

https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/azure-repos-git?view=azure-devops&tabs=yaml#disabling-the-ci-trigger