0
0
Jenkinsdevops~5 mins

Jenkins WAR file execution - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
Ajenkins start
Bjava -jar jenkins.war
Cjava jenkins.war
Dstart-jenkins
How do you specify a custom port when running Jenkins WAR?
Ajava -jar jenkins.war --port=9090
Bjava -jar jenkins.war -port 9090
Cjava -jar jenkins.war -p 9090
Djava -jar jenkins.war --httpPort=9090
What file contains the initial admin password after first Jenkins WAR run?
Asecrets/initialAdminPassword
Bjenkins.log
Cconfig.xml
Dadmin.password
How do you stop Jenkins running from the WAR file?
ARun 'jenkins stop' command
BClose the browser
CPress Ctrl+C in the terminal
DRestart the computer
What port does Jenkins use by default when started with the WAR file?
A8080
B443
C9090
D80
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.