How to YML Schedule build in Azure DevOps Pipeline

0 votes

I have an existing pipeline created in 'class editor' that includes: this needs to be scheduled to run monthly.

  • JSON file for variable substitutions,
  • install and run .pynb packages

enter image description here

There are 2 ways to achieve scheduling: YML or Classic (classic does not have a monthly option)

I have been using the following YAML to schedule run monthly. Here, this YML does not trigger to run the pipeline create in 'classic editor' to run - How can I include it? OR is there an efficient way to run my .pynb and .json file monthly?

 trigger: none

schedules:
- cron: "0 0 1 * *"
  displayName: (UTC) daily build
  branches:
    include:
    - main
    - releases/*
    exclude:
      - releases/old/*
  always: true

pool:
  vmImage: ubuntu-latest

steps:
- script: echo Hello, world!
  displayName: 'Run a one-line script'

- script: |
    echo Add other tasks to build, test, and deploy your project.
    echo See https://aka.ms/yaml
  displayName: 'Run a multi-line script'





Mar 28 in Other DevOps Questions by Kichu
• 16,850 points
31 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Other DevOps Questions

0 votes
1 answer
0 votes
0 answers
0 votes
1 answer
0 votes
0 answers
0 votes
0 answers
0 votes
0 answers
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP