0
0
Jenkinsdevops~5 mins

Build triggers (poll SCM, webhook, timer) in Jenkins - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
AStarts a build immediately when code is pushed
BChecks the source code repository at intervals for changes
CRuns a build at a fixed time every day
DManually triggers a build
Which trigger uses cron syntax to schedule builds?
ATimer
BWebhook
CPoll SCM
DManual
What is the main advantage of using a webhook trigger?
AIt triggers builds immediately after code changes
BIt polls the repository every minute
CIt schedules builds at night
DIt reduces build frequency
If you want Jenkins to build every hour regardless of code changes, which trigger should you use?
APoll SCM
BWebhook
CManual
DTimer
Which trigger requires the source code repository to support sending notifications?
ATimer
BPoll SCM
CWebhook
DManual
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.