0
0
Jenkinsdevops~5 mins

Poll SCM configuration in Jenkins - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is Poll SCM in Jenkins?
Poll SCM is a Jenkins feature that checks the source code repository at regular intervals to see if there are any changes. If changes are found, it triggers a build.
Click to reveal answer
beginner
How do you configure Poll SCM in a Jenkins job?
In the job configuration, under 'Build Triggers', select 'Poll SCM' and enter a schedule using cron syntax to specify how often Jenkins should check for changes.
Click to reveal answer
intermediate
What does the cron syntax in Poll SCM schedule represent?
The cron syntax defines the timing for polling. It has five fields: minute, hour, day of month, month, and day of week. For example, 'H/15 * * * *' means every 15 minutes.
Click to reveal answer
beginner
What happens if Poll SCM finds no changes in the repository?
If no changes are detected, Jenkins does not trigger a build. It simply waits until the next scheduled poll.
Click to reveal answer
intermediate
Can Poll SCM trigger builds immediately after a commit?
No, Poll SCM triggers builds only at scheduled intervals. For immediate builds after commits, use webhooks or other trigger methods.
Click to reveal answer
What does Poll SCM do in Jenkins?
ADeploys the application to production
BAutomatically merges code branches
CChecks the source code repository for changes at set intervals
DRuns unit tests only
Where do you enable Poll SCM in Jenkins job configuration?
AUnder 'Source Code Management'
BUnder 'Build Triggers'
CUnder 'Post-build Actions'
DUnder 'Build Environment'
What does the cron expression 'H/10 * * * *' mean in Poll SCM?
APoll every 10 minutes
BPoll every hour
CPoll once a day
DPoll every 10 seconds
If no changes are found during Poll SCM, what happens?
ABuild is triggered anyway
BJenkins restarts
CJenkins sends an error
DNo build is triggered
Which method triggers builds immediately after a commit instead of Poll SCM?
AWebhooks
BManual build
CScheduled build
DPolling every hour
Explain how Poll SCM works in Jenkins and how to configure it.
Think about how Jenkins checks for code changes regularly.
You got /4 concepts.
    Describe the difference between Poll SCM and webhook triggers in Jenkins.
    Consider timing and how builds start after code changes.
    You got /4 concepts.