Rakesh's Blog

Install and setup Jenkins on Linux Operating System

Install and setup Jenkins on Linux Operating System

Working with Jenkins with Ubuntu

You will need to explicitly install a Java runtime environment if not already installed.

Install OpenJDK-8 JRE/JDK on Ubuntu:
$ sudo apt-get update
$ sudo apt-get install openjdk-8-jdk openjdk-8-jre

Check if Java is installed and what is the version:
$ java -version

Refer installation Guide in the below link https://pkg.jenkins.io/debian-stable/ for latest updates.

$ wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
Then add the following entry in your /etc/apt/sources.list:

deb https://pkg.jenkins.io/debian-stable binary/

Update your local package index, then finally install Jenkins:

sudo apt-get update
sudo apt-get install jenkins

Jenkins service gets autostarted.
By default, Jenkins listens on port 8080.
To unlock jenkin and sign in

$ cat /var/lib/jenkins/secrets/initialAdminPassword

Then, select plugins to install and get started with Jenkins.

Powered by Froala Editor