Jenkins Tutorials

๐จโ๐ป DevOps Engineer | ๐ Cloud Enthusiast | ๐ Automation Advocate
๐ง Transforming Code into Continuous Innovation ๐ ๏ธ
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 !



