0
0
Jenkinsdevops~10 mins

Jenkins home directory structure - Interactive Code Practice

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

Complete the code to identify the main Jenkins home directory environment variable.

Jenkins
echo $[1]
Drag options to blanks, or click blank then click option'
AJENKINS_HOME
BHOME
CPATH
DJENKINS_PATH
Attempts:
3 left
💡 Hint
Common Mistakes
Using HOME instead of JENKINS_HOME
Confusing PATH with Jenkins home directory
2fill in blank
medium

Complete the command to list the contents of the Jenkins home directory.

Jenkins
ls -l $[1]
Drag options to blanks, or click blank then click option'
APATH
BHOME
CUSER
DJENKINS_HOME
Attempts:
3 left
💡 Hint
Common Mistakes
Listing $HOME instead of $JENKINS_HOME
Using $PATH which is unrelated
3fill in blank
hard

Fix the error in the command to find the Jenkins configuration file inside the home directory.

Jenkins
cat $[1]/config.xml
Drag options to blanks, or click blank then click option'
AJENKINS_HOME
BHOME
CCONFIG_HOME
DJENKINS_CONFIG
Attempts:
3 left
💡 Hint
Common Mistakes
Using HOME instead of JENKINS_HOME
Trying to use non-existent variables
4fill in blank
hard

Fill both blanks to create a command that lists all plugin files in the Jenkins plugins directory.

Jenkins
ls -l $[1]/$[2]
Drag options to blanks, or click blank then click option'
AJENKINS_HOME
Bplugins
Cconfig
Djobs
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'config' or 'jobs' instead of 'plugins'
Using HOME instead of JENKINS_HOME
5fill in blank
hard

Fill all three blanks to create a command that finds all job configuration files inside Jenkins home.

Jenkins
find $[1]/$[2] -name [3]
Drag options to blanks, or click blank then click option'
AJENKINS_HOME
Bjobs
Cconfig.xml
D*.xml
Attempts:
3 left
💡 Hint
Common Mistakes
Using '*.xml' instead of 'config.xml' to find job configs
Using 'plugins' instead of 'jobs' folder
Using HOME instead of JENKINS_HOME