- Lubos Rendek
- Ubuntu 18.04
The objective is to install Jenkins on Ubuntu 18.04 Bionic Beaver Linux
Operating System and Software Versions
- Operating System: - Ubuntu 18.04 Bionic Beaver
- Software: - Jenkins 2.89.4 or higher
Privileged access to your Ubuntu System as root or via
command is required.
- # - requires given linux commands to be executed with root privileges either directly as a root user or by use of
- $ - requires given linux commands to be executed as a regular non-privileged user
Add Jenkins Repository
To start, first add Jenkins's signing key and repository using the below commands:
$ wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
next, make a choice whether you wish to install stable or latest Jenkins server version:
FOR STABLE JENKINS VERSION RUN:
$ sudo apt-add-repository "deb https://pkg.jenkins.io/debian-stable binary/"
FOR LATEST JENKINS VERSION RUN:
$ sudo apt-add-repository "deb http://pkg.jenkins-ci.org/debian binary/"
Once the repository is included, all what remains to install Jenkins on Ubuntu 18.04 is to execute:
$ sudo apt-get install jenkins
Login to Jenkins Server
To be able to login to the new Jenkins server installation first obtain an initial password:
$ sudo cat /var/lib/jenkins/secrets/initialAdminPassword
Given that your Jenkins server can be accessed via eg. the
host name, navigate your browser to url:
Enter your Jenkins initial password obtained by
sudo cat /var/lib/jenkins/secrets/initialAdminPassword command.
Jenkins Server successfully installed.