|
|
|
@ -0,0 +1,23 @@ |
|
|
|
# Learning Jenkins, 01-05: Install Jenkins on Ubuntu |
|
|
|
|
|
|
|
# Prerequisites |
|
|
|
You will need to have `root` permission on the target system, specifically so you can run commands using `sudo`. |
|
|
|
|
|
|
|
# Installation |
|
|
|
In a terminal, run the following commands: |
|
|
|
``` |
|
|
|
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add - |
|
|
|
sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list' |
|
|
|
sudo apt-get update -y |
|
|
|
sudo apt-get -y install openjdk-11-jdk |
|
|
|
sudo apt-get install jenkins |
|
|
|
cat /var/lib/jenkins/secrets/initialAdminPassword |
|
|
|
``` |
|
|
|
|
|
|
|
# Using the Initial Admin Password |
|
|
|
Run the following command and copy the output: |
|
|
|
``` |
|
|
|
cat /var/lib/jenkins/secrets/initialAdminPassword |
|
|
|
``` |
|
|
|
|
|
|
|
Open a browser to [localhost:8080](http://localhost:8080) and enter the initial admin password. |