Table of contents
What is Jenkins?
Jenkins is a helpful tool used in software development that makes it easier for teams to work together and deliver high-quality software. It takes care of repetitive tasks, like building and testing the software, which can be time-consuming and error-prone if done manually. Jenkins also helps to ensure that changes made to the software don't cause any issues by automatically testing everything before it's released. It's a popular tool because it's easy to use and can be customized to fit different teams' needs. Overall, Jenkins makes the process of building and delivering software faster, safer, and more efficient.
What is the need of Jenkins
Why should use Jenkins?
Automation: Jenkins automates repetitive tasks in software development, saving time and reducing errors.
Continuous Integration: It allows developers to frequently integrate their code changes, catching bugs early and ensuring code quality.
Continuous Delivery: Jenkins supports quick and reliable delivery of software updates to users.
Easy to Use: It's a user-friendly tool that can be easily set up and customized for different development teams.
Plugin Support: Jenkins has a wide range of plugins that extend its functionality and adapt to various project requirements.
Installation of Jenkins :
step 1: Jenkins is a java based service. so, you have to install Java first.
#update the system
sudo apt update
#Install Java
sudo apt install openjdk-11-jre
# Check the Java version for validation
java --version
step 2: install jenkins now
#run this command
curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee \
/usr/share/keyrings/jenkins-keyring.asc > /dev/null
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \
https://pkg.jenkins.io/debian-stable binary/ | sudo tee \
/etc/apt/sources.list.d/jenkins.list > /dev/null
#now update your system
sudo apt-get update
# now run this final command to get jenkins in your system
sudo apt-get install jenkins
step 3: Now start the Jenkins server
#to start jenkins
sudo systemctl start jenkins
# to start automatically when the system boots up.
sudo systemctl enable jenkins
# to chech the status it is active or stopped
sudo systemctl status jenkins
step 5: Now open port 8080 using the IPv4 address and access Jenkins in the browser.
step 6: Now we have to get the admin password from the server.
step 7: Now get the admin password and paste it into the Jenkins server
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
step 8: Install suggested plugins :
step 9: Now we have to create an admin user
Get started:
For Jenkins related blogs.
Follow me on LinkedIn to see interesting posts like this : )