Jenkins on Ubuntu 20.04
My test platform: Ubuntu Server 20.04.1
Requirements: user with root privileges or non-root user with sudo privileges.
Jenkins installation
$ sudo apt update; sudo apt upgrade -y # Reboot if required
$ sudo apt install openjdk-11-jre-headless -y
$ java --version
$ wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
$ sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
$ sudo apt update; sudo apt install jenkins -y
$ sudo systemctl is-enabled jenkins.service
$ sudo systemctl status jenkins.service
Jenkins configuration
- Open your web browser and enter the URL of your Jenkins, followed by the default service port 8080 ( http://ip-address:8080 ).
- To view the Administrator password, use the cat command on /var/lib/jenkins/secrets/initialAdminPassword.
- Copy the password and paste it in the text field. Click the Continue button.
- Select Install suggested plugin.
- Create an Admin user and click on the Save and Continue button.
- Click Save and Finish. Finally, click on the Start using Jenkins.
Reference: Jenkins User Documentation.