Home > Net >  Azure DevOps pipelines scheduler - can't Triger pipeline
Azure DevOps pipelines scheduler - can't Triger pipeline

Time:12-09

I want to schedule a pipeline to execute it every single minute - only for test purpose:

trigger:

  • none

pool: test

pr: none

schedules:

  • cron: '* * * * * '

    displayName: Monday till Friday starting at 7AM

    branches:

    include:

    - master
    

    always: true

Why this is not working? Ultimately I want to schedule this pipeline starting from 7AM Monday till Friday. Also try to test this and unfortunately it didn't start at all.

CodePudding user response:

I want to schedule pipeline starting from 7AM only and from Monday till Friday About the cron template:

mm HH DD MM DW

Your proposal is 0 0 7 ? * MON,TUE,WED,THU,FRI * Template have 5 general points starting from minutes and ending on Days of Week - on your example I see more than 5 points.

CodePudding user response:

Based on the shared requirement the CORN Expression that You have to use either of the expressions 0 7 * * 1-5 or 0 7 * * Mon,Tue,Wed,Thu,Fri to trigger the job for every minute stating at 7AM from Monday to Friday.

You can refer this Azure Documentation, for more information about CORN expression syntax in AzureDevops.

You can also refer this Blog to Schedule Pipelines in Azure DevOps Using Cron Expressions.

  • Related