CI/CD - Jenkins setup - multichoice questions
Question 1
Having backups of your Jenkins instance is critically important.
When backing up Jenkins, you should copy the entire Jenkins home directory (/var/lib/jenkins
).
This directory contains all the configuration files, job configurations, plugin settings, logs, and other essential data needed to restore Jenkins to a working state.
The controller key file ($JENKINS_HOME/secrets/hudson.util.Secret
) is used to encrypt data in the secrets directory that secures credentials.
This controller key file is encrypted by another key file ($JENKINS_HOME/secrets/master.key
).
Never include the master.key
in your Jenkins backup!
What is a recommended approach for securely storing a backup of Jenkins?
- Store a copy of the entire Jenkins home directory every day.
- Store a copy of the entire Jenkins home directory every day, excluding the
master.key
as we don't need it. - Store a copy of the entire Jenkins home directory every day, excluding the
master.key
, which should be stored separately in a secure place. - Store a copy of the entire Jenkins home directory every day, excluding the
hudson.util.Secret
as we don't need it.
Question 2
Which of the below might be disadvantage(s) of Jenkins community plugins?
- Enhanced functionality
- Compatibility issues
- Security concerns
- Flexibility and customization
- Easy integration with other tools
- Poor documentation and support
Question 3
When launching Jenkins as a Docker container, what is the default jenkins home directory?
-
/var/lib/jenkins
-
/home/jenkins
-
/var/jenkins_home
-
JENKINS_HOME