Bird
Raised Fist0
Jenkinsdevops~10 mins

Configuring system settings in Jenkins - Interactive Practice

Choose your learning style10 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set the Jenkins system message.

Jenkins
jenkins.model.Jenkins.instance.setSystemMessage("[1]")
Drag options to blanks, or click blank then click option'
ABuild failed
BWelcome to Jenkins!
CNo jobs configured
DSystem is offline
Attempts:
3 left
💡 Hint
Common Mistakes
Using a message that indicates an error instead of a welcome message.
Forgetting to use quotes around the message string.
2fill in blank
medium

Complete the code to enable Jenkins security.

Jenkins
jenkins.model.Jenkins.instance.setSecurityRealm(new [1]())
Drag options to blanks, or click blank then click option'
ANoSecurityRealm
BLegacySecurityRealm
CHudsonPrivateSecurityRealm
DAnonymousSecurityRealm
Attempts:
3 left
💡 Hint
Common Mistakes
Using a security realm that disables security.
Choosing a non-existent security realm class.
3fill in blank
hard

Fix the error in the code to set the number of executors to 4.

Jenkins
jenkins.model.Jenkins.instance.setNumExecutors([1])
Drag options to blanks, or click blank then click option'
A"4"
B4.0
Cfour
D4
Attempts:
3 left
💡 Hint
Common Mistakes
Passing the number as a string.
Using a word instead of a number.
Using a decimal number.
4fill in blank
hard

Fill both blanks to configure Jenkins to use the 'admin' user and set the authorization strategy to full control.

Jenkins
jenkins.model.Jenkins.instance.setSecurityRealm(new HudsonPrivateSecurityRealm(false))
jenkins.model.Jenkins.instance.setAuthorizationStrategy(new [1]())
jenkins.model.Jenkins.instance.getSecurityRealm().createAccount("[2]", "password")
Drag options to blanks, or click blank then click option'
AFullControlOnceLoggedInAuthorizationStrategy
BLoggedInUsersCanDoAnythingAuthorizationStrategy
CMatrixAuthorizationStrategy
Dadmin
Attempts:
3 left
💡 Hint
Common Mistakes
Using an authorization strategy that requires complex matrix setup.
Not creating the user before setting permissions.
5fill in blank
hard

Fill the blanks to create a new Jenkins job named 'MyJob' of type freestyle and save it.

Jenkins
import hudson.model.FreeStyleProject
import jenkins.model.Jenkins

project = Jenkins.instance.createProject([1], "[2]")
project.save()
Drag options to blanks, or click blank then click option'
AFreeStyleProject.class
BMyJob
CFreeStyleProject
DFreestyleProject.class
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect class names or missing .class suffix.
Not providing the job name as a string.

Practice

(1/5)
1. What is the main purpose of the Configure System page in Jenkins?
easy
A. To view build logs of completed jobs
B. To create new Jenkins jobs
C. To install Jenkins plugins
D. To set global settings that affect all Jenkins jobs and nodes

Solution

  1. Step 1: Understand Jenkins system configuration

    The Configure System page is used to set global settings that apply to the entire Jenkins instance.
  2. Step 2: Differentiate from other Jenkins pages

    Creating jobs, viewing logs, and installing plugins are done in other sections, not in Configure System.
  3. Final Answer:

    To set global settings that affect all Jenkins jobs and nodes -> Option D
  4. Quick Check:

    Configure System = Global settings [OK]
Hint: Configure System sets global Jenkins settings [OK]
Common Mistakes:
  • Confusing Configure System with job creation
  • Thinking Configure System manages plugins
  • Mixing build logs with system settings
2. Which of the following is the correct way to access the Jenkins system configuration page?
easy
A. Go to Manage Jenkins > Configure System
B. Go to Dashboard > New Item
C. Go to Manage Jenkins > Plugin Manager
D. Go to Build History > Configure

Solution

  1. Step 1: Identify the navigation path for system settings

    The system configuration page is accessed via Manage Jenkins then Configure System.
  2. Step 2: Eliminate incorrect navigation options

    New Item is for creating jobs, Plugin Manager is for plugins, and Build History does not have configuration options.
  3. Final Answer:

    Go to Manage Jenkins > Configure System -> Option A
  4. Quick Check:

    Manage Jenkins > Configure System = Correct path [OK]
Hint: System config is under Manage Jenkins > Configure System [OK]
Common Mistakes:
  • Selecting Plugin Manager instead of Configure System
  • Confusing New Item with system settings
  • Looking for configuration in Build History
3. After setting an environment variable in Jenkins' Configure System page, what will happen when a job runs?
medium
A. The job will have access to the environment variable during its execution
B. The environment variable will only apply to the Jenkins master node
C. The environment variable will be ignored unless set in the job itself
D. The environment variable will cause the job to fail if not declared in the job config

Solution

  1. Step 1: Understand environment variables in Configure System

    Setting environment variables globally makes them available to all jobs during execution.
  2. Step 2: Clarify scope and effect

    These variables are injected into the job's environment, so the job can use them without declaring them again.
  3. Final Answer:

    The job will have access to the environment variable during its execution -> Option A
  4. Quick Check:

    Global env vars = Available in jobs [OK]
Hint: Global env vars set in Configure System apply to all jobs [OK]
Common Mistakes:
  • Thinking env vars only apply to master node
  • Assuming jobs must declare env vars again
  • Believing env vars cause job failure if undeclared
4. You configured a tool path in Jenkins' Configure System, but jobs fail saying the tool is not found. What is the most likely cause?
medium
A. The job configuration overrides the global tool path
B. The tool must be installed via Jenkins Plugin Manager
C. The tool path is incorrect or not accessible by Jenkins
D. Jenkins requires a restart after setting tool paths

Solution

  1. Step 1: Check tool path correctness

    If Jenkins cannot find the tool, the path set in Configure System is likely wrong or Jenkins lacks permission to access it.
  2. Step 2: Understand plugin and restart roles

    Tools usually do not require plugins to be installed, and Jenkins does not always need a restart for path changes.
  3. Final Answer:

    The tool path is incorrect or not accessible by Jenkins -> Option C
  4. Quick Check:

    Incorrect tool path = Job failure [OK]
Hint: Verify tool path and permissions if jobs fail to find tools [OK]
Common Mistakes:
  • Assuming plugin installation fixes tool path issues
  • Forgetting to check file system permissions
  • Restarting Jenkins unnecessarily
5. You want to configure Jenkins to send email notifications on build failures globally. Which steps should you take in the Configure System page?
hard
A. Configure email notifications in Manage Plugins section
B. Set SMTP server details and default email suffix under Configure System
C. Install email plugin and restart Jenkins without configuring SMTP
D. Add email addresses in each job's post-build actions only

Solution

  1. Step 1: Configure SMTP server in Configure System

    To send emails globally, SMTP server details must be set in the Configure System page under Jenkins settings.
  2. Step 2: Set default email suffix and other notification settings

    These settings ensure Jenkins can send emails without configuring each job separately.
  3. Final Answer:

    Set SMTP server details and default email suffix under Configure System -> Option B
  4. Quick Check:

    SMTP config in Configure System = Global email notifications [OK]
Hint: Set SMTP server in Configure System for global email alerts [OK]
Common Mistakes:
  • Only adding emails in job post-build actions
  • Skipping SMTP setup after installing plugins
  • Looking for email config in Manage Plugins
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard