Files
cje-crash-course/exercises/01-jenkins-installation/instructions.md
Benjamin Muschko 248499c8f6 Initial commit
2019-11-17 16:40:48 -07:00

1.4 KiB

Exercise 1

In this exercise, you will practice installing and configuring Jenkins on your machine.

Installing Jenkins

  1. Download the latest stable Jenkins WAR file. To download from the command line, use wget http://mirrors.jenkins.io/war-stable/latest/jenkins.war.
  2. Open a terminal and navigate to the directory containing the WAR file.
  3. 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. After a couple of seconds you should see the message "Jenkins is fully up and running" in the log output.
  4. Open a browser of your choice and navigate to localhost:<port>. The default is localhost:8080.
  5. In the screen named "Unlock Jenkins", enter the password from the console output. Press the "Continue" button.
  6. In the screen named "Customize Jenkins", select the option "Install suggested plugins".
  7. In the screen named "Create First Admin User", enter all fields with credentials for your Jenkins administrator. Press the "Save and Continue" button.
  8. In the screen named "Instance Configuration", keep the default value. Press the "Save and Finish" button.
  9. You should see the message "Jenkins is ready!". Press the "Start using Jenkins" button. You'll be redirected to the Jenkins dashboard.