Scheduled YAML Pipeline failure

%3CLINGO-SUB%20id%3D%22lingo-sub-3356662%22%20slang%3D%22en-US%22%3EScheduled%20YAML%20Pipeline%20failure%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3356662%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20created%20one%20azure%20devops%20YAML%20pipeline%20and%20I%20have%20defined%20the%20following%20file%20path%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Leandros1990_0-1652264934565.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F370723i9AEA831E7B1BBD03%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Leandros1990_0-1652264934565.png%22%20alt%3D%22Leandros1990_0-1652264934565.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20scheduled_run.yml%20file%20contains%20the%20followings%20%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-yaml%22%3E%3CCODE%3Etrigger%3A%20none%0A%0Aschedules%3A%0A-%20cron%3A%20%220%200%20*%20*%20*%22%0A%20%20displayName%3A%20%22Daily%20midnight%20build%22%0A%20%20branches%3A%0A%20%20%20%20include%3A%0A%20%20%20%20-%20master%0A%20%20always%3A%20true%0A%0Asteps%3A%0A-%20pwsh%3A%20.%5CupdateAccessToken.ps1%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%20when%20I%20execute%20the%20job%20is%20failed%20with%20the%20following%20error%20%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22lia-spoiler-container%22%3E%3CA%20class%3D%22lia-spoiler-link%22%20href%3D%22%23%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3ESpoiler%3C%2FA%3E%3CNOSCRIPT%3E(Highlight%20to%20read)%3C%2FNOSCRIPT%3E%3CDIV%20class%3D%22lia-spoiler-border%22%3E%3CDIV%20class%3D%22lia-spoiler-content%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Escheduled_runs.yml%20(Line%3A%203%2C%20Col%3A%201)%3A%20Unexpected%20value%20'schedules'%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CNOSCRIPT%3E%3CDIV%20class%3D%22lia-spoiler-noscript-container%22%3E%3CDIV%20class%3D%22lia-spoiler-noscript-content%22%3Escheduled_runs.yml%20(Line%3A%203%2C%20Col%3A%201)%3A%20Unexpected%20value%20'schedules'%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FNOSCRIPT%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Leandros1990_1-1652265100264.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F370727i44EF0155E77671B5%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Leandros1990_1-1652265100264.png%22%20alt%3D%22Leandros1990_1-1652265100264.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegarding%20to%20the%20documentation%20%5B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdevops%2Fpipelines%2Fyaml-schema%2Fschedules-cron%3Fview%3Dazure-pipelines%23examples%5D%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdevops%2Fpipelines%2Fyaml-schema%2Fschedules-cron%3Fview%3Dazure-pipelines%23examples%5D%3C%2FA%3E%26nbsp%3Bseems%20correctly%20and%20supported.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20something%20that%20is%20missing%20%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance%3C%2FP%3E%3C%2FLINGO-BODY%3E
New 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