Presentation
On
Jenkins – A DevOps Automation Tool
By Ganesh Bahadur Basnet
Roll No:252513(Msc Computer Science)
To Suresh Pokharel
Software Engineering
NCIT
1
What is Jenkins?
• 🔧 Jenkins is a free open-source automation
tool
• ✅ Helps developers automate:
• - Code building
• - Testing
• - Deployment
• 💡 Think of Jenkins as a robot that automates
software delivery
2
Why Jenkins in DevOps?
• 🛠 DevOps = Fast + Reliable software delivery
• 🔄 Jenkins automates repetitive steps:
• - Pull code
• - Build
• - Test
• - Deploy
• ✅ Supports CI/CD(Continuous Integration &
Continuous Delivery)
3
Real-Life Analogy
Building Software = Baking a Cake
Your automatic robot baker!
Jenkins
4
How Jenkins Works – Simple Example
• 📦 Your App = GitHub repo
• You push code
• 🤖 Jenkins sees it
• 🔧 Jenkins builds & tests
• 🌐 Jenkins deploys
• ✅ All steps happen automatically
5
Basic Jenkins Terms
• Term | Meaning | Example
• Job | Task Jenkins runs | Build Python app
• Pipeline | Script of steps | Git → Build → Test
• Build | Compile process | Java → .class files
• Agent | Worker machine | Jenkins runs on it
• Trigger | Event starter | Git push = build starts
6
Jenkins: Hello World Example
• [Link]:
• print("Hello, World!")
•
• 🧾 Jenkins Steps:
• 1. Pull from GitHub
• 2. Run python [Link]
• 3. Output: Hello, World!
• 🎉 Test done automatically!
7
Common Jenkins Use Cases
• Task | Jenkins Does
• Compile Code | Use Maven/Gradle
• Run Tests | Use pytest, JUnit
• Build Docker | Create Docker image
• Deploy App | Push to AWS/Heroku
• Send Alerts | Email/Slack notification
8
Jenkins Pipeline Example
• pipeline {
• agent any
• stages {
• stage('Pull Code') { steps { git 'repo-url' } }
• stage('Build') { steps { echo 'Build...' } }
• stage('Test') { steps { echo 'Testing...' } }
• stage('Deploy') { steps { echo 'Deploying...' } }
• }
• }
• 🚀 Automates everything from code to deploy
9
How to Use Jenkins
• 1. Install Jenkins
• 2. Open browser: [Link]
• 3. Create new Job
• 4. Connect with GitHub
• 5. Write Pipeline or Freestyle steps
• 6. Run manually or automatically (with
triggers)
10
Jenkins Integrates With
• 🧩 Jenkins works with:
• - Git, GitHub, GitLab
• - Docker, Kubernetes
• - Maven, Gradle
• - AWS, Azure, GCP
• - Slack, Email
11
Summary
• Key Point | Meaning
• Jenkins | Automation tool for CI/CD
• CI | Auto build/test on every push
• CD | Auto deployment
• Pipeline | Step-by-step script
• Real Use | Saves time, avoids error, fast
delivery
12