Azure Pipelines

Specifics

  • Trigger: Branches

    When no branches are specified in the trigger sections, the build should trigger for pushes to all branches. However, we have seen different behavior and hence suggest to specify branches explicitly.

  • Trigger: Tags

    When no tags are specified in the trigger section the default is to not trigger on tags being pushed.

Example Config

NOTE:

The following example shows a pinned virtual environment. The current list of available environments for Azure Pipelines can be found in the documentation.

pool:
  vmImage: 'windows-2019'

trigger:
  branches:
    include:
    - '*'
  tags:
    include:
    - '*'

pr:
  branches:
    include:
    - '*'

steps:
- task: Cache@2
  inputs:
    key: '"$(Agent.OS)" | recipe.cake'
    path: 'tools'
- task: Cake@2
  inputs:
    script: 'recipe.cake'
    target: 'CI'
    verbosity: 'Normal'
    Bootstrap: true
    Version: '1.1.0'
GitHub