DMVC
DMVC

Reputation: 240

Azure cron scheduled pipeline always running (without failing builds)

Azure scheduled pipeline runs for every push in master.
What am I missing?
Here's the yaml code:

schedules:
- cron: "0 23 * * *"
  displayName: Nightly build
  branches:
    include:
    - master

Apparently, the previous builds aren't failing. I've already tried to remove this pipeline and create it again, but it keeps running for every push.

enter image description here

The scheduled runs are correct:

enter image description here

Upvotes: 1

Views: 110

Answers (1)

DMVC
DMVC

Reputation: 240

Ok, I think I figured this out.
Just added the following lines to the yml file and it no longer runs the scheduled pipeline on every push.

trigger: none

pr: none

Upvotes: 2

Related Questions