About SB Developer
SB Developers is one of the leading web development companies in India that has been offering high-quality, trustworthy, timely [...]
Now a days we are moving forward to continious development and Integration process. many developer face some issue during code deployment process. some time we miss some file or configuration or we have to run some commend in terminal after file transfer. So its is realy a pain to follow each step after deploy the source code every time. So to fixed that all problem we have an one step solution which will solve the issue as well as deploy and run after deployment porcess with an one click which is JENKINS.
In market there are many tools like Bamboo, Gitlab, Buildbot but jenkins is one of the best open source tool, written in java to implement CI and CD process. Today i will tell you step by step process to install jenkins in Ubuntu 18
1. Always run below commed to make all dependecy uptodate in ubuntu
sudo apt-get update
2. Now we need to install Java in our server.
sudo apt search jdk
sudo apt install openjdk-8-jdk
sudo apt install openjdk-8-jdk-headless
3. Now we are ready to install Jenkins
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
sudo nano /etc/apt/sources.list [Add Mentioned line in source.list deb https://pkg.jenkins.io/debian binary/]
sudo apt-get update
sudo apt-get install jenkins
sudo service jenkins status
4.Now Jenkins will run in default port 8080. Right now we have to open that port
sudo ufw allow 8080
sudo ufw status // Check ufa status for new PORT
sudo ufw allow OpenSSH
sudo ufw enable
Now we are done with Jenkins installtion. The Jenkisn server will run in 8080
5.After open the URL you can see below screen. where you can find the path of administrator password. Run below commend to display the secrate key. Enter the key and press continue
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
6.Now you will see two options One for Suggested plgin and another for selected plugin. Choose Install Suggested plugin for easy installation
7.You can see the progress bar for installation process. Wait for few minutes
8. Now Enter username , password, Email id and Your Jenkins is reday to use
If you find our post usefull for you, please click on like button. We will share you more commonly usefull article soon