Forum Discussion

Leandros1990's avatar
Leandros1990
Copper Contributor
May 11, 2022

Scheduled YAML Pipeline failure

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

 

 

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'

 

 

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

 

Is there something that is missing ? 

 

 

Thanks in advance

No RepliesBe the first to reply

Resources