what is jenkins ?
Jenkins is an open-source automation server that is commonly used for building, testing, and deploying code in a continuous integration and continuous delivery (CI/CD) pipeline.
Jenkins work flow:
Why Jenkins?
Jenkins π is like a trusty butler π© for your software development team π¨βπ»π©βπ». It's your go-to automation hero β‘οΈ, helping you with all things related to building, testing, and deploying your software ποΈπ§ͺπ.
Here's a breakdown of Jenkins with emojis:
Continuous Integration π: Jenkins ensures your code gets integrated and tested automatically whenever changes are made. No more integration headaches! π€―
Scheduled Jobs π : It can run tasks and jobs on a schedule, like nightly builds or regular backups β°.
Plugins Galore π§©: Jenkins has a vast library of plugins to extend its functionality. It's like a Swiss Army knife π¨π for your DevOps needs.
Friendly Notifications π£: Jenkins can notify you via email, chat, or any other preferred method when builds fail or succeed. It's your friendly messenger π.
Distributed Builds π: It can distribute tasks across multiple machines, making builds faster and efficient. It's like having a clone army π₯π₯ at your disposal.
Version Control Integration π: Seamless integration with Git, SVN, and others. Jenkins speaks version control fluently! π
Customizable Dashboards πΌοΈ: Create personalized dashboards to monitor your project's health. It's like having your own control center π.
Pipeline Support π¦: Jenkins supports defining your entire software delivery process as code using Jenkinsfile. Think of it as your DevOps script! π
Community Love β€οΈ: It's an open-source project with a vibrant community, always ready to help. It's like a big, friendly family π¨βπ©βπ§βπ¦.
So, Jenkins is your trusty DevOps sidekick, automating tasks, ensuring code quality, and keeping your software development pipeline running smoothly π€πΌ.
Advanatges of jenkins :
π€ Open Source: No cost, no worries!
𧩠Plugin Heaven: Customize like a pro!
π Automation Magic: Bye-bye manual work!
π Cross-Platform: It's everywhere!
π§ͺ Continuous Testing: Find bugs early!
π οΈ Easy Integrations: Connect all the things!
π Scalability: Grow as you go!
π¨ Customizable: Make it your own!
π¨ Notifications: Never miss a beat!
π Security: Keep your secrets safe!
π« Community Love: Friends everywhere!
πͺ Reliability: Trusty sidekick, always!
Jenkins: Your DevOps bestie! ππ
Install Jenkins on Linux (Ubuntu)
1 Take access of your server
Type sudo -i to become a root user
sudo -i
Now update your server or machine :-
apt update -y
Install the java
sudo apt install openjdk-11-jre
Enter the Y to install the java
Check the java is installed or not using
java -version
or
java --version
Now Install the Jenkins Using the jenkins official page (https://www.jenkins.io/doc/book/installing/linux/#debianubuntu) or fallowing commands as well.
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 sudo apt-get update sudo apt-get install jenkins
press enter to install the jenkins
and also enter y
check the jenkins is installed or not using
which jenkins
Now start the Jenkins:
systemctl start jenkins
Also enable the jenkins
systemctl enable jenkins
Check the status of jenkins
systemctl status jenkins
now use the public ip : 8080 port
Now Using terminal see the jenkins password
cat /var/lib/jenkins/secrets/initialadminpassword
Now copy shown password and paste in jenkins webpage:
Now click on the continue button.
As per your wish go with anyone
i'll suggest go with Install suggested plugins
wait till all plugins get load.
Provide the username and password
And click on save and continue
Now just click on save and finish
It will show like below
Now you can access the our jenkins dashboard
Thank You !