Jenkins Installation and CI/CD Automation on EC2/Linux Machine

🚀 #100DaysOfDevOps – Day 11 Today I worked on Jenkins installation and CI/CD automation, understanding how builds are triggered in real-time environments. 🔹 Step 1: Jenkins Installation (Server Setup) Commands: yum install java-17-amazon-corretto -y yum install jenkins -y systemctl start jenkins ✔ Scenario: Setting up Jenkins server on EC2/Linux machine for CI/CD pipelines 🔹 Step 2: Install Git on Jenkins Server ✔ Scenario: Jenkins needs Git to pull code from repositories 🔹 Step 3: Connect Jenkins with GitHub Repo ✔ Scenario: Linking project repository to Jenkins for automated builds Steps: • Create Jenkins job • Add GitHub repo URL • Configure credentials (username + token) 🔹 Step 4: Build Automation (Real-Time Triggering) 🚀 When developer pushes code → Jenkins automatically triggers build ✔ Webhook (Real-time trigger) • Scenario: Immediate build after code push (used in production CI/CD) ✔ Poll SCM (Scheduled check) • Scenario: Jenkins checks repo every few minutes for changes ✔ Build Periodically • Scenario: Nightly builds / scheduled jobs 🔹 Real-Time Workflow (End-to-End) 👨💻 Developer pushes code → 🔗 GitHub repo updated → ⚙️ Jenkins triggered (Webhook) → 🏗️ Build starts → 🧪 Tests executed → 🚀 Deployment pipeline triggered 💡 Jenkins is the backbone of CI/CD pipelines, enabling automation, faster delivery, and reduced manual effort. From manual builds → to fully automated pipelines. 💪 #Jenkins #DevOps #CICD #Automation #CloudEngineering #100DaysChallenge #ContinuousLearning

  • graphical user interface, application

To view or add a comment, sign in

Explore content categories