Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Sunday, 24 June 2018

How To Install Jenkins on Ubuntu 16.04


 

About Jenkins:

-- Jenkins is a Continuous Integration (CI) server or tool which is written in java. The software enables developers to find and solve defects in a code base rapidly and to automate testing of their builds.

Step: 1. Update & Upgrade the System :

# apt-get update && apt-get -y upgrade
# apt-get -y install zip unzip wget curl rsync telnet

Step: 2. Install JDK 8 :

# apt-get -y install software-properties-common
# add-apt-repository ppa:webupd8team/java -y
# apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886 -y
# apt-get update
# apt-get -y install oracle-java8-installer

Step: 3. Set JAVA_HOME Environment Variables :

# vi /etc/profile.d/java.sh

#!/bin/bash
JAVA_HOME=/usr/lib/jvm/java-8-oracle/
PATH=$JAVA_HOME/bin:$PATH
export PATH JAVA_HOME
export CLASSPATH=.

-- Save & Quit (:wq)

# chmod +x /etc/profile.d/java.sh
# source /etc/profile.d/java.sh
# echo $JAVA_HOME
# java -version

java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)

Step: 4. Download & Install Jenkins :

# wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
# sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
# apt-get -y update
# apt-get -y install jenkins
# service jenkins start
or
# systemctl start jenkins

Step: 5. Setting up Jenkins (Jenkins GUI Configurations) :


-- To use and configure Jenkins, visit the following address in your browser.

http://your-ip-address:8080

We should see "Unlock Jenkins" screen, which displays the location of the initial password.

# cat /var/lib/jenkins/secrets/initialAdminPassword

We'll copy the 32-character alphanumeric password from the terminal and paste it into the "Administrator password" field, then click "Continue". The next screen presents the option of installing suggested plugins or selecting specific plugins.


Thanks For Visiting on My Blog, For More Tutorials Keep Visiting My Blog

Copyright © 2016 Kousik Chatterjee's Blog