Complete the code to schedule a pipeline to run every day at midnight.
schedule: cron: "[1]"
The cron expression 0 0 * * * means the pipeline runs every day at midnight.
Complete the code to trigger a pipeline when a new commit is pushed to the main branch.
trigger:
branches:
include:
- [1]The pipeline triggers on commits pushed to the main branch.
Fix the error in the pipeline trigger to run only on tags starting with 'v'.
trigger:
tags:
include:
- [1]The pattern v* matches tags starting with 'v'.
Fill both blanks to schedule a pipeline to run every 15 minutes only on weekdays.
schedule: cron: "[1] [2] * * 1-5"
The cron expression */15 0 * * 1-5 runs every 15 minutes during the 0th hour (midnight) on weekdays (Monday to Friday).
Fill all three blanks to define a pipeline trigger that runs on pushes to the 'dev' branch, on tags starting with 'release', and on a schedule every Sunday at 3 AM.
trigger:
branches:
include:
- [1]
tags:
include:
- [2]
schedule:
cron: "[3] 3 * * 0"The pipeline triggers on pushes to the dev branch, tags starting with release, and runs every Sunday at 3 AM (hour 3, minute 0, day 0).