Jenkins Tutorials

Jenkins Tutorials

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:

Task DescriptionπŸ“„ Research for industry use cases of Jenkins and create a  blog, Article or

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:

  1. Continuous Integration πŸ”„: Jenkins ensures your code gets integrated and tested automatically whenever changes are made. No more integration headaches! 🀯

  2. Scheduled Jobs πŸ“…: It can run tasks and jobs on a schedule, like nightly builds or regular backups ⏰.

  3. Plugins Galore 🧩: Jenkins has a vast library of plugins to extend its functionality. It's like a Swiss Army knife πŸ‡¨πŸ‡­ for your DevOps needs.

  4. Friendly Notifications πŸ“£: Jenkins can notify you via email, chat, or any other preferred method when builds fail or succeed. It's your friendly messenger πŸ’Œ.

  5. Distributed Builds 🌐: It can distribute tasks across multiple machines, making builds faster and efficient. It's like having a clone army πŸ‘₯πŸ‘₯ at your disposal.

  6. Version Control Integration πŸ“š: Seamless integration with Git, SVN, and others. Jenkins speaks version control fluently! πŸ“œ

  7. Customizable Dashboards πŸ–ΌοΈ: Create personalized dashboards to monitor your project's health. It's like having your own control center πŸš€.

  8. Pipeline Support 🚦: Jenkins supports defining your entire software delivery process as code using Jenkinsfile. Think of it as your DevOps script! πŸ“

  9. 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 :

  1. πŸ€– Open Source: No cost, no worries!

  2. 🧩 Plugin Heaven: Customize like a pro!

  3. πŸ”„ Automation Magic: Bye-bye manual work!

  4. πŸš€ Cross-Platform: It's everywhere!

  5. πŸ§ͺ Continuous Testing: Find bugs early!

  6. πŸ› οΈ Easy Integrations: Connect all the things!

  7. πŸ“ˆ Scalability: Grow as you go!

  8. 🎨 Customizable: Make it your own!

  9. 🚨 Notifications: Never miss a beat!

  10. πŸ” Security: Keep your secrets safe!

  11. πŸ‘« Community Love: Friends everywhere!

  12. πŸ’ͺ 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 !

Β