Objective

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

Requirements

Privileged access to your Ubuntu System as root or via sudo command is required.

Difficulty

EASY

Conventions

  • # - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ - requires given linux commands to be executed as a regular non-privileged user

Instructions

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/"

$$$ Looking for LINUX ADMINISTRATOR ! $$$

BLUE SKY STUDIOS are looking for Linux Administrator to maintain and support the Studio's 450+ production Linux workstations, including daily interactions with the Studio’s digital animation artists.
LOCATION: Greenwich, Connecticut, USA

APPLY NOW

Install Jenkins

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
7c470b90ced24d8eb8ae1071ff38304d
Given that your Jenkins server can be accessed via eg. the jenkins-ubuntu host name, navigate your browser to url: http://jenkins-ubuntu:8080.
install jenkins ubuntu - initial login password
Enter your Jenkins initial password obtained by sudo cat /var/lib/jenkins/secrets/initialAdminPassword command.
Jenkins Server successfully installed - Ubuntu 18.04 Bionic Beaver
Jenkins Server successfully installed.
ARE YOU LOOKING FOR A LINUX JOB?
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed on LinuxCareers.com.
LINUX CAREER NEWSLETTER
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.