Jenkins Jenkins Installation and Configuration 2 — Questions and Answers
Question 1: Where does Jenkins store installed plugins by default?
- $JENKINS_HOME/plugins/ (Correct answer)
- $JAVA_HOME/plugins/
- /etc/jenkins/plugins/
- /usr/share/jenkins/plugins/
Correct answer: $JENKINS_HOME/plugins/
Jenkins installs plugins in the plugins subdirectory under JENKINS_HOME.
Question 2: What format are Jenkins plugin files distributed in?
- .jar
- .war
- .hpi or .jpi (Correct answer)
- .zip
Correct answer: .hpi or .jpi
Jenkins plugins are distributed as .hpi (Hudson Plugin Interface) or .jpi (Jenkins Plugin Interface) files.
Question 3: Which tool is used to install Jenkins on Linux using a package manager on RHEL/CentOS?
- apt-get
- yum or dnf (Correct answer)
- brew
- snap
Correct answer: yum or dnf
On RHEL/CentOS systems, Jenkins is installed using yum or dnf package managers after adding the Jenkins repo.
Question 4: What is the Jenkins WAR file used for?
- Backing up Jenkins configuration
- Running Jenkins as a standalone server via Java (Correct answer)
- Deploying Jenkins to a Kubernetes cluster
- Compiling Jenkins plugins
Correct answer: Running Jenkins as a standalone server via Java
The jenkins.war file is a self-contained web archive that can be run directly with `java -jar jenkins.war`.
Question 5: Which configuration approach allows Jenkins environment variables to be set system-wide for all jobs?
- Job-level environment injection
- Manage Jenkins > Configure System > Global properties (Correct answer)
- Jenkinsfile env block
- Pipeline script parameters
Correct answer: Manage Jenkins > Configure System > Global properties
Global environment variables for all jobs are configured under Manage Jenkins > Configure System > Global properties.
Question 6: What is the purpose of the Jenkins Manage Jenkins > System Information page?
- To display all installed plugins and their versions
- To show JVM properties, environment variables, and system properties for diagnostics (Correct answer)
- To manage user accounts and roles
- To configure global build tools
Correct answer: To show JVM properties, environment variables, and system properties for diagnostics
The System Information page displays JVM properties, environment variables, and memory usage useful for troubleshooting.
Where does Jenkins store installed plugins by default?