Tuesday, May 16, 2017

How to install Jenkins on Ubuntu

Before you start, please make sure that you have java installed. If you do not have java already, please refer this link to install. http://idroot.net/linux/install-oracle-java-ubuntu-17-10/

1. First add the key to your system:
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key \
| sudo apt-key add - 
2. Then add the following entry in your /etc/apt/sources.list:
deb https://pkg.jenkins.io/debian binary/
3. Run the following two commands to install Jenkins:
sudo apt-get update
sudo apt-get install jenkins
4. If no errors during the above steps, you can find the generated admin password here:
/var/lib/jenkins/secrets/initialAdminPassword
5. Point a browser to the following URL and use the admin password found in step 4 to config Jenkins:
http://<<IP_Address_of_server>>:8080
6. Select some plugins to install from the Jenkins dashboard.
7. Create first admin username and password from the Jenkins dashboard.

No comments:

Post a Comment