Install Jenkins : Jenkins is a widely adopted open-source continuous integration (CI) and continuous delivery/deployment (CD) tool that has gained immense popularity in the software development community. Its primary purpose is to automate the software development process, encompassing various stages from building and testing code to seamlessly deploying it to production environments.
Key Features and Benefits:
- CI/CD Pipeline Management: Jenkins excels in creating and managing CI/CD pipelines, enabling developers to establish a seamless flow of code changes from development to production. It facilitates the automation of repetitive tasks, streamlines the development process, and enhances overall efficiency.
- Extensive Integration Options: Jenkins boasts a vast ecosystem of plugins, allowing for seamless integration with a wide range of tools and technologies commonly used in the software development lifecycle. This includes popular source code management platforms like Git and GitHub, containerization tools such as Docker and Kubernetes, and testing frameworks like JUnit and Selenium.
- Master-Slave Architecture: Jenkins employs a master-slave architecture, where the master node serves as the central coordinator, orchestrating the build and deployment tasks. The slave nodes, on the other hand, perform the actual tasks of building, testing, and deploying code. This distributed architecture enables scalability and efficient resource utilization, particularly for large projects with complex build and deployment requirements.
- Robust Reporting and Visualization: Jenkins provides comprehensive reporting and visualization capabilities, empowering users to monitor the progress and status of their CI/CD pipelines. It offers real-time insights into build and test results, enabling developers to quickly identify and address issues. Additionally, Jenkins allows for customization of dashboards and reports to cater to specific project needs and preferences.
- Community Support and Plugins: The Jenkins community is renowned for its vibrant ecosystem and extensive collection of plugins. Developers can leverage these plugins to extend Jenkins’ functionality and tailor it to their unique requirements. This thriving community also contributes to the continuous improvement of Jenkins, ensuring it remains innovative and aligned with evolving industry trends and best practices.
Installation Steps :
login to server via terminal or gitbash using SSH .
STEP 01 : make sure you update and upgrade your newly created virtual machine
sudo su
apt update && apt upgrade
Step 02 : After Update and upgrade , let us install jenkins on machine , enter below command it’s one line if any line broke is happening make sure you remove that
curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee \/usr/share/keyrings/jenkins-keyring.asc > /dev/null
Step 03 : Then add a Jenkins apt repository entry: second command:-
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
Step 04 : Install Java & Jenkins
sudo apt-get update
sudo apt-get install fontconfig openjdk-11-jre
sudo apt-get install jenkins
Congratulation’s you installed jenkins on your server
Open server ip :8080
now use this command
cat /var/lib/jenkins/secrets/initialAdminPassword
you will get password copy that go to webpage enter and continue
congratulations