Hello,
Thanks for visiting RvKmR.blogspot.in
In this blog post, I am explaining about installing Jenkins in the ubunut system. Ubuntu release that I am working on is as below
Thanks for visiting RvKmR.blogspot.in
In this blog post, I am explaining about installing Jenkins in the ubunut system. Ubuntu release that I am working on is as below
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=17.04
DISTRIB_CODENAME=zesty
DISTRIB_DESCRIPTION="Ubuntu 17.04"
I will explain working on Jenkins in another post, for now, we will discuss how to install Jenkins in Ubuntu system.
- To run Jenkins successfully we need a web server. I am familiar with nginx, so I am going with it. Jenkins by default works on 8080 port. Install Jenkins with below command
- sudo apt-get install nginx
- Jenkins is written in Java, so we need Java to be installed on our system. Adding repo to install jdk
- sudo add-apt-repository ppa:openjdk-r/ppa
- sudo apt-get update
- Install jdk now.
- sudo apt-get install openjdk-8-jdk
- Add Jenkins key and update source list to install Jenkins.
- wget https://jenkins-ci.org/debian/jenkins-ci.org.key
- sudo apt-key add jenkins-ci.org.key
- sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
- sudo apt-get update
- Now Install Jenkins
- sudo apt-get install jenkins
Now Jenkins is installed on your system now, you can verify by netstat command.
root@ravikumar-RV409-RV509-RV709:/home/ravikumar/vagrant_setup# netstat -plan | grep :8080
tcp6 0 0 :::8080 :::* LISTEN 7964/java
you can see above java process is listening on port 8080.
Now open your browser and enter your ip address with port as <ip>:<8080> for me it is localhost:8080
Enter initial security key from file mentioned.
Now select option to install suggested plugin
And finally, create a user account.
That's it, you are on Jenkins dashboard now.
good going.. keep up the good work. Thanks for sharing..
ReplyDelete@Dilip Jaiswal thanks :)
Delete