0
0
Jenkinsdevops~10 mins

Jenkins WAR file execution - Interactive Code Practice

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

Complete the command to start Jenkins using the WAR file.

Jenkins
java -jar [1]
Drag options to blanks, or click blank then click option'
Ajenkins.zip
Bjenkins.jar
Cjenkins.war
Djenkins.exe
Attempts:
3 left
💡 Hint
Common Mistakes
Using .jar or .exe instead of .war
Trying to run the WAR file without 'java -jar'
2fill in blank
medium

Complete the command to run Jenkins on port 8081 instead of the default port.

Jenkins
java -jar jenkins.war --httpPort=[1]
Drag options to blanks, or click blank then click option'
A8081
B9090
C443
D80
Attempts:
3 left
💡 Hint
Common Mistakes
Using port 80 which requires root privileges
Using port 443 which is for HTTPS
3fill in blank
hard

Complete the command to run Jenkins with a custom URL prefix.

Jenkins
java -jar jenkins.war --prefix=[1]
Drag options to blanks, or click blank then click option'
A/home/jenkins
B/var/jenkins_home
C/jenkins_home
D/custom_home
Attempts:
3 left
💡 Hint
Common Mistakes
Using file system paths instead of URL paths for --prefix
Confusing home directory with URL prefix
4fill in blank
hard

Fill both blanks to run Jenkins on port 9090 with a custom prefix URL.

Jenkins
java -jar jenkins.war --httpPort=[1] --prefix=[2]
Drag options to blanks, or click blank then click option'
A9090
B8080
C/jenkins
D/custom
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up port numbers
Using file system paths instead of URL prefixes
5fill in blank
hard

Fill all three blanks to run Jenkins with a custom home directory, on port 8085, and with a prefix URL.

Jenkins
JENKINS_HOME=[1] java -jar jenkins.war --httpPort=[2] --prefix=[3]
Drag options to blanks, or click blank then click option'
A/var/lib/jenkins
B8085
C/ci
D/home/jenkins
Attempts:
3 left
💡 Hint
Common Mistakes
Using URL paths for home directory
Using default port instead of 8085
Omitting the prefix or using wrong format