Recall & Review
beginner
What is the Jenkins WAR file?
The Jenkins WAR file is a single executable file that contains the entire Jenkins application. It can be run directly with Java to start Jenkins without needing a separate installation.
Click to reveal answer
beginner
How do you start Jenkins using the WAR file?
You start Jenkins by running the command:
java -jar jenkins.war. This launches Jenkins on the default port 8080.Click to reveal answer
intermediate
How can you change the port Jenkins runs on when using the WAR file?
Use the command
java -jar jenkins.war --httpPort=9090 to run Jenkins on port 9090 instead of the default 8080.Click to reveal answer
beginner
What happens when you run
java -jar jenkins.war for the first time?Jenkins starts and creates initial setup files. It shows a URL with an initial admin password stored in a file. You use this password to unlock Jenkins in the browser.
Click to reveal answer
beginner
How do you stop Jenkins when running from the WAR file?
You can stop Jenkins by pressing Ctrl+C in the terminal where Jenkins is running. This safely shuts down the server.
Click to reveal answer
Which command starts Jenkins using the WAR file on the default port?
✗ Incorrect
The correct command is
java -jar jenkins.war to start Jenkins from the WAR file.How do you specify a custom port when running Jenkins WAR?
✗ Incorrect
The correct syntax to change port is
--httpPort=9090.What file contains the initial admin password after first Jenkins WAR run?
✗ Incorrect
The initial admin password is stored in
secrets/initialAdminPassword inside the Jenkins home directory.How do you stop Jenkins running from the WAR file?
✗ Incorrect
Pressing Ctrl+C in the terminal safely stops Jenkins.
What port does Jenkins use by default when started with the WAR file?
✗ Incorrect
Jenkins runs on port 8080 by default when started with the WAR file.
Explain how to start Jenkins using the WAR file and how to access it in a browser.
Think about the command, port, and first-time setup steps.
You got /4 concepts.
Describe how to change the port Jenkins runs on when using the WAR file and how to stop Jenkins safely.
Focus on command options and stopping Jenkins.
You got /3 concepts.