Which pipeline trigger type will start a pipeline automatically when new code is pushed to the main branch?
Think about what happens immediately after code changes are pushed.
A webhook trigger listens for events like code pushes and starts the pipeline automatically. Scheduled triggers run pipelines at set times. Manual triggers require user action. Pull request triggers start pipelines on PR events.
Given this cron schedule in a pipeline YAML config, what is the next run time if today is Monday 10:00 AM?
schedule: '0 12 * * 1'
Check what the cron expression means: minute hour day month weekday.
The cron '0 12 * * 1' means every Monday at 12:00 PM. If today is Monday 10:00 AM, the next run is today at 12:00 PM.
A pipeline has both a scheduled trigger set for daily 2 AM and a webhook trigger on code push. If code is pushed at 1:50 AM, which triggers will start the pipeline and in what order?
Consider if triggers are independent or if one cancels the other.
Webhook triggers start the pipeline immediately on code push. Scheduled triggers run at their set time regardless. Both triggers cause separate runs.
A pipeline with a webhook trigger does not start when code is pushed. Which is the most likely cause?
Check the connection between the code repository and the pipeline system.
If the webhook URL is wrong or missing, the code repository cannot notify the pipeline system to start. Scheduled triggers and YAML errors do not affect webhook triggers directly. Branch filters can also cause issues but are less common than webhook misconfiguration.
What is the best practice when configuring a pipeline with both scheduled and event-based triggers to avoid redundant runs?
Think about how to prevent running the same work twice unnecessarily.
Using a flag or state check allows the pipeline to detect if a recent run already processed the latest changes, avoiding duplicate work. Disabling triggers or running simultaneously is not efficient. Ignoring redundancy can waste resources.