Conditional Build on Azure Devops Pipeline

less than 1 minute read

The first step is to add a test on the buld. It didn’t have any build trigger. So I added it.

name: scoring-services
trigger:
  branches:
    exclude:
      - master

Now also shedule it to run it nightly

schedules:
  - cron: "0 0 * * *"
    displayName: Daily midnight build
    always: true
    branches:
      include:
        - master

To be continued …

Comments