Jenkins Jenkins Installation and Configuration 3 — Questions and Answers
Question 1: Which Jenkins configuration section allows you to define global Maven or JDK installations?
- Manage Jenkins > Configure System
- Manage Jenkins > Global Tool Configuration (Correct answer)
- Manage Jenkins > Manage Plugins
- Manage Jenkins > Script Console
Correct answer: Manage Jenkins > Global Tool Configuration
Global tool installations like JDK, Maven, and Gradle are configured in Manage Jenkins > Global Tool Configuration.
Question 2: What does the 'Quiet Period' setting in Jenkins do?
- Delays the next build by a set number of seconds after a trigger fires (Correct answer)
- Silences build notifications
- Sets the timeout for idle agents
- Prevents builds from running during off-hours
Correct answer: Delays the next build by a set number of seconds after a trigger fires
The Quiet Period delays a build by a specified number of seconds to allow multiple commits to be batched before triggering.
Question 3: How do you prevent a Jenkins job from showing up in search results or the dashboard?
- Delete the job
- Set job visibility to private
- Use a View to filter jobs (Correct answer)
- Disable the job
Correct answer: Use a View to filter jobs
Jenkins Views can be configured to show only specific jobs, effectively hiding others from a given dashboard perspective.
Question 4: Which Jenkins feature allows you to copy an existing job's configuration as a starting point?
- Import Job
- Clone Pipeline
- Copy From field when creating a new job (Correct answer)
- Job Template plugin
Correct answer: Copy From field when creating a new job
When creating a new job, the 'Copy from' field lets you specify an existing job name to duplicate its configuration.
Question 5: What is the function of the Jenkins Executor?
- A thread responsible for executing build jobs on an agent or controller (Correct answer)
- A plugin that manages build queues
- A container used to isolate builds
- The Jenkins API gateway
Correct answer: A thread responsible for executing build jobs on an agent or controller
An Executor is a thread slot on a node that physically runs a build; each node can have multiple executors.
Question 6: What happens when you set the number of executors on the Jenkins controller (built-in node) to 0?
- Jenkins stops working
- No builds run on the controller, forcing all builds to agents (Correct answer)
- Jenkins runs one build at a time
- All agent connections are disabled
Correct answer: No builds run on the controller, forcing all builds to agents
Setting controller executors to 0 is a best practice that prevents builds from running on the controller, reserving it for management tasks.
Which Jenkins configuration section allows you to define global Maven or JDK installations?