0
0
Jenkinsdevops~20 mins

Poll SCM configuration in Jenkins - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Poll SCM Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2:00remaining
Understanding Poll SCM Cron Syntax
What is the effect of the following Poll SCM cron schedule in Jenkins?
H/15 * * * *
APolls the SCM every 15 minutes at a random offset to reduce load spikes.
BPolls the SCM exactly at minute 15 of every hour.
CPolls the SCM once daily at 15 minutes past midnight.
DPolls the SCM every 15 seconds continuously.
Attempts:
2 left
💡 Hint
The 'H' character in Jenkins cron means a hashed value to spread load.
Configuration
intermediate
2:00remaining
Correct Poll SCM Configuration for Hourly Polling
Which Poll SCM cron expression correctly configures Jenkins to poll the SCM once every hour at the 0th minute?
A0 0 * * *
BH * * * *
C*/60 * * * *
D0 * * * *
Attempts:
2 left
💡 Hint
Look for the expression that triggers at minute zero of every hour.
Troubleshoot
advanced
2:00remaining
Poll SCM Not Triggering Builds
A Jenkins job is configured with Poll SCM using the schedule 'H/10 * * * *' but no builds are triggered even though the repository has changes. What is the most likely cause?
AThe Jenkins workspace is corrupted and prevents polling from detecting changes.
BThe Poll SCM schedule syntax is invalid and causes Jenkins to skip polling.
CThe Jenkins user does not have permission to access the SCM repository.
DThe SCM plugin is disabled in Jenkins.
Attempts:
2 left
💡 Hint
Check permissions and access rights first when polling does not detect changes.
Best Practice
advanced
2:00remaining
Efficient Poll SCM Scheduling
Which Poll SCM schedule is best to reduce load on the SCM server when multiple Jenkins jobs poll frequently?
AUse 'H/5 * * * *' to poll every 5 minutes with a hashed offset.
BUse '*/5 * * * *' to poll every 5 minutes exactly on the 0,5,10... minutes.
CUse '0 * * * *' to poll once every hour at minute 0.
DUse 'H H * * *' to poll once daily at a hashed hour and minute.
Attempts:
2 left
💡 Hint
Hashed offsets help distribute polling times evenly.
🧠 Conceptual
expert
2:00remaining
Poll SCM Behavior with Multiple Branches
In a Jenkins Multibranch Pipeline, how does Poll SCM behave when configured with a schedule like 'H/15 * * * *'?
APolling is disabled for multibranch pipelines; builds trigger only on webhooks.
BEach branch is polled independently at its own hashed offset every 15 minutes.
COnly the default branch is polled every 15 minutes; other branches are ignored.
DAll branches are polled simultaneously every 15 minutes causing load spikes.
Attempts:
2 left
💡 Hint
Multibranch pipelines treat branches as separate jobs with their own schedules.