In this exercise, you will practice installing and configuring Jenkins on your machine. Feel free to experiment with a different Jenkins distribution than the proposed WAR file.
- Download the latest stable Jenkins WAR file. To download from the command line, use
wget https://get.jenkins.io/war-stable/latest/jenkins.war
. - Open a terminal and navigate to the directory containing the WAR file.
- Run the command
java -jar jenkins.war
to start Jenkins on port 8080. Provide the--httpPort
option if you experience a port conflict e.g.java -jar jenkins.war --httpPort=9999
. For more information on starting and stopping Jenkins, see the user guide. After a couple of seconds you should see the message "Jenkins is fully up and running" in the log output. - Open a browser of your choice and navigate to
localhost:<port>
. The default islocalhost:8080
. - In the screen named "Unlock Jenkins", enter the password from the console output. Press the "Continue" button.
- In the screen named "Customize Jenkins", select the option "Install suggested plugins".
- In the screen named "Create First Admin User", enter all fields with credentials for your Jenkins administrator. Press the "Save and Continue" button.
- In the screen named "Instance Configuration", keep the default value. Press the "Save and Finish" button.
- You should see the message "Jenkins is ready!". Press the "Start using Jenkins" button. You'll be redirected to the Jenkins dashboard.