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, 2022 in Other DevOps Questions by Kichu
• 19,040 points
1,317 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

How to configure and execute Azure Devops classic editor pipeline after commit in Github?

If you're looking for CI/CD triggers, all ...READ MORE

answered Feb 10, 2022 in Other DevOps Questions by Bhavitha
• 1,000 points
1,064 views
0 votes
0 answers
0 votes
1 answer
0 votes
0 answers

OWASP Zed Attack Proxy Scan in DevOps pipeline

I want to do the "Authenticated Scan" ...READ MORE

Mar 15, 2022 in DevOps Tools by Kichu
• 19,040 points
848 views
0 votes
1 answer
0 votes
0 answers

Multiple YAML build pipelines in Azure DevOps

Using the new YAML way I want ...READ MORE

Mar 15, 2022 in DevOps Tools by Kichu
• 19,040 points
1,130 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP