Recall & Review
beginner
What is a build trigger in Jenkins?
A build trigger is a way to start a Jenkins job automatically based on certain events or schedules, like code changes or time intervals.
Click to reveal answer
beginner
How does 'Poll SCM' trigger work in Jenkins?
Poll SCM checks the source code repository at set intervals to see if there are changes. If changes are found, it starts a build.
Click to reveal answer
intermediate
What is a webhook trigger in Jenkins?
A webhook trigger starts a Jenkins build immediately when the source code repository sends a notification about a change.
Click to reveal answer
beginner
Explain the timer trigger in Jenkins.
A timer trigger starts a Jenkins build at scheduled times using cron syntax, regardless of code changes.
Click to reveal answer
intermediate
Which build trigger is more efficient for immediate builds after code changes: Poll SCM or Webhook?
Webhook is more efficient because it starts the build immediately after a change, while Poll SCM waits for the next scheduled check.
Click to reveal answer
What does the 'Poll SCM' trigger do in Jenkins?
✗ Incorrect
'Poll SCM' checks the repository regularly and triggers a build if changes are detected.
Which trigger uses cron syntax to schedule builds?
✗ Incorrect
The Timer trigger uses cron syntax to schedule builds at specific times.
What is the main advantage of using a webhook trigger?
✗ Incorrect
Webhook triggers start builds right after code changes, making builds faster and more efficient.
If you want Jenkins to build every hour regardless of code changes, which trigger should you use?
✗ Incorrect
Timer trigger schedules builds at fixed times, like every hour, independent of code changes.
Which trigger requires the source code repository to support sending notifications?
✗ Incorrect
Webhook triggers depend on the repository sending notifications to Jenkins.
Describe the differences between Poll SCM, Webhook, and Timer triggers in Jenkins.
Think about how and when each trigger starts a build.
You got /3 concepts.
Explain why you might choose a webhook trigger over polling SCM in a Jenkins pipeline.
Consider build speed and system load.
You got /3 concepts.