0
0
Jenkinsdevops~20 mins

Jenkins WAR file execution - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Jenkins WAR Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2:00remaining
Jenkins WAR file startup command output
You run the command java -jar jenkins.war on a Linux server. What is the expected output you will see in the console upon successful startup?
AStarted Jenkins in 5 seconds (JVM running for 6)
BError: Could not find or load main class jenkins.war
C
Running from: /home/user
INFO: Jenkins is fully up and running
DUsage: java [-options] class [args...]
Attempts:
2 left
💡 Hint
Look for the message that confirms Jenkins started successfully.
🧠 Conceptual
intermediate
1:30remaining
Default Jenkins port when running WAR file
When you run Jenkins using the WAR file without specifying any port, which port does Jenkins listen on by default?
A9090
B80
C443
D8080
Attempts:
2 left
💡 Hint
Think about common web server ports and Jenkins default settings.
Configuration
advanced
2:00remaining
Running Jenkins WAR on a custom port
You want to run Jenkins WAR file on port 9090 instead of the default 8080. Which command will correctly start Jenkins on port 9090?
Ajava -jar jenkins.war --httpPort=9090
Bjava -jar jenkins.war --port 9090
Cjava -jar jenkins.war -p 9090
Djava -jar jenkins.war --setPort=9090
Attempts:
2 left
💡 Hint
Check the official Jenkins WAR file command line options for setting HTTP port.
Troubleshoot
advanced
1:30remaining
Jenkins WAR file fails to start with port in use error
You run java -jar jenkins.war but get an error saying the port 8080 is already in use. What is the best immediate action to fix this?
AReinstall Java on the server
BKill the process using port 8080 or run Jenkins on a different port
CDelete the jenkins.war file and download it again
DRestart the server without changing anything
Attempts:
2 left
💡 Hint
Think about what causes port conflicts and how to resolve them quickly.
Best Practice
expert
2:30remaining
Securing Jenkins WAR file execution
Which practice is the best to secure Jenkins when running it directly from the WAR file on a production server?
ADisable Jenkins security to simplify access
BRun Jenkins as root user for full access
CRun Jenkins behind a reverse proxy with HTTPS and authentication
DOpen Jenkins port 8080 to the internet without firewall
Attempts:
2 left
💡 Hint
Think about common security practices for web applications.