Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to set the polling schedule to every 15 minutes in Jenkins.
Jenkins
pollSCM('H/[1] * * * *')
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 60 will poll only once per hour, not every 15 minutes.
Using 5 will poll too frequently if 15 is desired.
✗ Incorrect
The 'H/15 * * * *' syntax tells Jenkins to poll the SCM every 15 minutes.
2fill in blank
mediumComplete the code to poll SCM every day at midnight.
Jenkins
pollSCM('H [1] * * *')
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 12 schedules noon, not midnight.
Using 24 is invalid in cron syntax.
✗ Incorrect
Setting the hour field to 0 schedules polling at midnight daily.
3fill in blank
hardFix the error in the polling schedule to poll every 10 minutes.
Jenkins
pollSCM('H/[1] * * * *')
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 5 polls every 5 minutes, not 10.
Using 15 or 20 polls less frequently.
✗ Incorrect
The correct interval for polling every 10 minutes is 'H/10'.
4fill in blank
hardFill both blanks to poll SCM every Monday at 3 AM.
Jenkins
pollSCM('H [1] * * [2]')
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 0 for hour schedules midnight, not 3 AM.
Using 7 for day of week means Sunday, not Monday.
✗ Incorrect
Hour '3' sets 3 AM, and day of week '1' means Monday in Jenkins cron syntax.
5fill in blank
hardFill all three blanks to poll SCM every weekday at 6:30 AM.
Jenkins
pollSCM('30 [1] * * [2]-[3]')
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 7 includes Sunday, which is not a weekday.
Using hour 30 is invalid.
✗ Incorrect
Minute '30' and hour '6' set 6:30 AM. Days 1 to 5 represent Monday to Friday (weekdays).