Challenge - 5 Problems
Jenkins WAR Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2: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?Attempts:
2 left
💡 Hint
Look for the message that confirms Jenkins started successfully.
✗ Incorrect
When you run 'java -jar jenkins.war', Jenkins starts and prints a message like 'Started Jenkins in X seconds'. This confirms the server is running.
🧠 Conceptual
intermediate1: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?
Attempts:
2 left
💡 Hint
Think about common web server ports and Jenkins default settings.
✗ Incorrect
Jenkins by default listens on port 8080 when started from the WAR file without any port option.
❓ Configuration
advanced2: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?
Attempts:
2 left
💡 Hint
Check the official Jenkins WAR file command line options for setting HTTP port.
✗ Incorrect
The correct syntax to specify a custom HTTP port is '--httpPort=PORT'. Other options are invalid or unrecognized.
❓ Troubleshoot
advanced1: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?Attempts:
2 left
💡 Hint
Think about what causes port conflicts and how to resolve them quickly.
✗ Incorrect
Port 8080 is already used by another process. You can either stop that process or run Jenkins on a different port to avoid conflict.
✅ Best Practice
expert2: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?
Attempts:
2 left
💡 Hint
Think about common security practices for web applications.
✗ Incorrect
Running Jenkins behind a reverse proxy with HTTPS and authentication protects it from unauthorized access and secures data in transit.