How To Install Jenkins On Ubuntu 18.04
Introduction to Jenkins
Jenkins is a self-contained, open source automation server which can be used to automate all sorts of tasks related to building, testing, and delivering or deploying software. You can also tell like for CI & CD, Jenkins comes and play a handy role.
Features of Jenkins
- Continuous Integration [CI] & Continuous Delivery [CD]
Jenkins works as automated servers which take codes from the developer side end and turned into the continuous delivery.
- Easy to Configure
Jenkins can be easy to configure and comes with a web user interface which makes it easy to use.
- Distributed in nature
Jenkins can easily distribute work across multiple machines, helping drive builds, tests and deployments across multiple platforms faster. You can integrate Jenkins with GitHub, svn etc.
- Plugin supports
Jenkins supports hundreds of plugins which you can download directly from Update Center.
- Ubuntu 18.04 OS
You can install Ubuntu 18.04 in the virtual box also for learning purpose.
- Java JDK Install
Make sure java JDK latest version should be installed into the system.
- 1 GB RAM
Make sure, the system comes with at least 1 GB RAM size.
- sudo access
Used can able to access to perform sudo commands.
- 8080 port should be open and available
Make sure 8080 port should not occupy with another service, because Jenkins use 8080 port by default.
Now the time came to learn steps about how to install Jenkins on Ubuntu 18.04.
Step 1:- Add Jenkins repository key to the system.
$ wget -q -O - https://pkg.jenkins.io/debian/jenkins-io.key | sudo apt-key add -
Step 2:- Check Source List
$ sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
Step 3:- Update the system to make sure apt-get can able to get value from Jenkins repository
$ sudo apt update
Step 4:- Install Jenkins
$ sudo apt install jenkins
Bingo, now you successfully installed Jenkins on Ubuntu 18.04 and you learn very well about how to install Jenkins on Ubuntu 18.04. Now we need to start our Jenkins server.
For Starting the Jenkins server, you can use
$ sudo systemctl start jenkins
For Checking Status of Jenkins running server, you can use the
$ sudo systemctl status jenkins
As everything is running fine, so you can start Jenkins server, for that, you have to visit to
http://IP_ADDRESS OR LOCALHOST:8080 open Jenkins Web User interface.
I hope, you learn how to install Jenkins on Ubuntu 16.04 and your Jenkins server is running. In case of any confusion, you can comment down and I will try my best to reply as soon as possible.
If you want to visit Jenkins official website, then please click here
For other tutorials, related to Jenkins and other technology, please visit my website
If you are using Ubuntu 16.04, then please check my article “How to Install Jenkins on Ubuntu 16.04”