Select Page

####################
1. Install JAVA 8
####################
Commands:
——————————————————-
Add Oracle’s PPA, then update your package repository.
——————————————————-
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update

———————–
Install JDK8
———————–
sudo apt-get install oracle-java8-installer

####################
2. Install Jenkins
####################

First, we’ll add the repository key to the system.

wget -q -O – https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add –

—————————–
When the key is added, the system will return OK. Next, we’ll append the Debian package repository address to the server’s sources.list:
—————————–

# echo deb https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list

——————————-
When both of these are in place, we’ll run update so that apt-get will use the new repository:
——————————

sudo apt-get update

———————————–
Finally, we’ll install Jenkins and its dependencies, including Java:
———————————–

sudo apt-get install jenkins

————————————
Now, Start jenkins service
————————————

systemctl start jenkins
systemctl enable jenkins

———————————
Go to web, http://IP_ADDRESS:8080
———————————
Enter default password from /var/lib/jenkins/secrets/initialAdminPassword

Then install suggested plugins.

————————–
Setup your own credentials
————————–
Jenkins user and password
user: admin
Password eifo7aeHivohc4I