Scheduled YAML Pipeline failure

Copper Contributor

I have created one azure devops YAML pipeline and I have defined the following file path 

 

Leandros1990_0-1652264934565.png

 

The scheduled_run.yml file contains the followings : 

 

 

trigger: none

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

steps:
- pwsh: .\updateAccessToken.ps1

 

 

However when I execute the job is failed with the following error : 

 

Spoiler
scheduled_runs.yml (Line: 3, Col: 1): Unexpected value 'schedules'

Leandros1990_1-1652265100264.png

 

 

Regarding to the documentation [https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/schedules-cron?view=azure-pipeli... seems correctly and supported. 

 

Is there something that is missing ? 

 

 

Thanks in advance

0 Replies