Notesly
Notesly LogoNotesly
School Notes
Academic Notes
Competitive Exams
Search Write Article Upload NoteLogin
Engineering Medical Law Business Civil Engineering Computer Science Electrical Engineering Class 10 Class 11 Class 12 NEET JEE SSC CUET Mathematics Physics Chemistry Biology History
web_app_banner

Explore

  • School Notes
    • Class 9th Notes
    • Class 10th Notes
    • Class 11th Notes
    • Class 12th Notes
  • Academic Notes
    • Engineering Notes
    • Medicine Notes
    • MBA Notes
  • Competitive Exams
    • JEE Mains/Advance Notes
    • GATE Exam Notes
    • UPSC Exam Notes
    • SSC CGL Exam Notes
    • NEET Exam Notes
    • NEET PG Exam Notes
  • Exams and Articles
    • Khan Sir Offline Coaching: A Complete Guide to Courses, Fees, Facilities and Admission Process Introduction
    • PhD Stipend Above ₹40,000 in India 2026: Universities & Fellowships List
    • Government-Backed Free Certification Courses: 2026 Updated List
    • NEET Cutoff (2015 to 2024) 10-Year Detailed Analysis
    • Physics Wallah IIT-JEE Coaching: Comprehensive Guide to Affordable Online Batches & Vidyapeeth Centre Fees (2025 Edition)
    • Hybrid Mastery: The Blended Learning Blueprint for Bank & RRB Exams 2026
    • Credit Transfer Between Universities in India: Complete Step-by-Step Guide 2024
    • Indian vs Japanese Education: Surprising Differences You Didn’t Know
    • Crack NEET with Confidence: Ultimate Last-Minute Preparation Guide 2025
    • Khan Global Studies: Your Complete Guide to Offline & Online Coaching
    • PW Vidyapeeth – Everything You Need to Know About Physics Wallah’s Offline Coaching
    • Top NEET Coaching Centers in India – Ranking, Fees, and Success Insights
    • Government Internship Calendar 2026 Is Live: Full Official List, Deadlines & Eligibility Explained
    • GATE CSE vs GATE DA & AI: Which Paper Should You Prepare For? A Comprehensive Guide for GATE 2025 Aspirants
    • Allen Coaching Centre Offline Classes 2025: A Complete Guide
  • School Sample Papers
    • Class 12 Hindi
    • Class 12 Chemistry
    • Class 12 Mathematics
    • Class 12 Physics
    • Class 12 Sanskrit
    • Class 11 Mathematics
    • Class 10 Computer Science
    • Class 12 Mathematics
    • Class 10 Music
  • College Sample Papers
    • BTech/BE BTech in Electrical Engineering
Notesly LogoNotesly

© 2025 Notesly. All Rights Reserved.

Quick Links

  • Login
  • Upload Notes
  • Create Article

Company

  • About Us
  • Advertise With Us
  • Terms & Conditions
  • Privacy Policy
Home
Articles
Jenkins Essentials Beginner’s ...

Jenkins Essentials Beginner’s Guide to Fundamentals, Installation, and Setup

Last updated on: May 21, 2025

6 Views

Satyendra Kumar Verma

Working Professional

Share :

1. Introduction to Jenkins

What is Jenkins?

Jenkins is an open-source automation server used to automate software development processes such as building, testing, and deploying applications. It helps developers integrate code changes continuously and ensures high software quality.

Importance of Jenkins in DevOps

Jenkins plays a vital role in DevOps by enabling Continuous Integration (CI) and Continuous Deployment (CD). It automates repetitive tasks, accelerates the software release cycle, and ensures smooth collaboration between development and operations teams.

Key Features of Jenkins

  1. Open-source and Extensible: Supports hundreds of plugins.
  2. Distributed Builds: Can run on multiple machines for efficient execution.
  3. Easy Integration: Works with Git, Docker, Kubernetes, and more.
  4. Pipeline as Code: Uses Jenkinsfile to define automation workflows.

2. Understanding CI/CD and Jenkins' Role

What is Continuous Integration (CI)?

CI is a development practice where developers frequently merge code changes into a shared repository, automatically triggering builds and tests.

What is Continuous Deployment/Delivery (CD)?

  1. Continuous Delivery: Ensures every change is deployable at any time but requires manual approval.
  2. Continuous Deployment: Automatically deploys every change to production after passing tests.

How Jenkins Automates CI/CD

Jenkins automates CI/CD by:

  1. Pulling code from version control systems like GitHub.
  2. Running automated tests.
  3. Deploying applications to staging or production environments.

3. Prerequisites for Installing Jenkins

System Requirements

  1. Minimum: 512MB RAM, 1GB disk space
  2. Recommended: 4GB RAM, SSD, multi-core processor

Supported Operating Systems

  1. Windows
  2. Linux (Ubuntu, CentOS, Debian)
  3. macOS

Software Dependencies

  1. Java (JDK 11 or later)
  2. Web Browser (for UI access)
  3. Optional: Docker (for containerized installations)

4. Installing Jenkins on Different Platforms

Windows Installation

  1. Download the Jenkins Windows Installer (.msi) from jenkins.io.
  2. Run the installer and follow the setup wizard.
  3. Start the Jenkins service and access it via http://localhost:8080.

Linux (Ubuntu/CentOS) Installation

  1. Install Java: sudo apt install openjdk-11-jdk
  2. Add the Jenkins repository and install Jenkins:
sudo apt update
sudo apt install jenkins
  1. Start Jenkins: sudo systemctl start jenkins

Mac Installation

  1. Install Homebrew (if not installed).
  2. Run: brew install jenkins-lts
  3. Start Jenkins: brew services start jenkins-lts

Docker Installation (Optional)

  1. Install Docker on your system.
  2. Run Jenkins using Docker:
docker run -p 8080:8080 -p 50000:50000 jenkins/jenkins:lts

5. Setting Up Jenkins for First Use

Starting the Jenkins Service

After installation, Jenkins runs as a service. You can access it via http://localhost:8080 in a browser.

Unlocking Jenkins and Initial Configuration

  1. Locate the initial admin password from the terminal or log file (/var/lib/jenkins/secrets/initialAdminPassword).

  1. Enter the password on the Jenkins UI to proceed.

Installing Recommended Plugins

Jenkins suggests installing essential plugins like Git, Pipeline, and Build Tools. Select "Install Suggested Plugins."

Creating the First Admin User

Set up an administrator account with a username and password for secure access.

6. Exploring Jenkins Dashboard

Overview of the UI

  1. Dashboard: Displays all jobs and builds.
  2. New Item: Create jobs and pipelines.
  3. Manage Jenkins: System settings and plugin management.

Understanding Jobs, Pipelines, and Builds

  1. Jobs: Define automation tasks (Freestyle, Pipeline, etc.).
  2. Pipelines: Advanced scripting for multi-step workflows.
  3. Builds: Execution of a job triggered manually or automatically.

Configuring Global Settings

Modify settings like system logs, security, and node configurations.

7. Creating Your First Jenkins Job

Freestyle Project vs Pipeline

  1. Freestyle Project: Simple UI-based job for basic tasks.
  2. Pipeline: Script-based workflow automation using Groovy.

Running a Simple Job

  1. Click New Item > Select Freestyle Project.
  2. Configure Source Code Management (Git, SVN).
  3. Add a Build Step (e.g., Run Shell Script).
  4. Save and trigger the build.

Viewing Build Logs and Results

  1. Click on the job and check the Console Output for logs.
  2. View build status: Success , Failure , Unstable .

8. Troubleshooting Common Issues

Installation Errors and Fixes

  1. Jenkins Not Starting: Check logs using journalctl -u jenkins.
  2. Java Version Issue: Ensure Java 11+ is installed.

Plugin Conflicts

  1. Solution: Update plugins from Manage Jenkins > Plugin Manager.
  2. Rollback Option: Disable problematic plugins.

Port and Firewall Issues

  1. Port 8080 Already in Use? Change it via JENKINS_PORT=9090.
  2. Firewall Blocking Jenkins? Allow access:
sudo ufw allow 8080
sudo systemctl restart jenkins

Conclusion and Next Steps

  1. You’ve learned Jenkins fundamentals, installation, and setup.
  2. Next, explore advanced features like Jenkins pipelines, integration with GitHub, and deployment strategies.
  3. Keep experimenting with Jenkins to automate your software delivery process!


Related Articles

Explore All
Jenkins Essentials Beginner’s Guide to Fundamentals, Installation, and Setup

Jenkins Essentials Beginner’s Guide to Fundamentals, Installation, and Setup

May 21, 2025

How to Run Playwright Tests in Bitbucket – Step-by-Step Guide

How to Run Playwright Tests in Bitbucket – Step-by-Step Guide

Feb 25, 2025

Integrating Playwright with Jenkins: Step-by-Step Guide

Integrating Playwright with Jenkins: Step-by-Step Guide

May 22, 2025

Software Testing 101: Why Every Developer Needs to Be a Detective

Software Testing 101: Why Every Developer Needs to Be a Detective

Mar 14, 2025

Key Software Development Life Cycle (SDLC) Models: Waterfall, V-Model, and Agile

Key Software Development Life Cycle (SDLC) Models: Waterfall, V-Model, and Agile

Mar 15, 2025

Introduction to Software Testing: A Beginner’s Guide

Introduction to Software Testing: A Beginner’s Guide

Apr 5, 2025

Top 5 Trending AI Tools for Developers in 2025

Top 5 Trending AI Tools for Developers in 2025

May 4, 2025

Dozzle and the importance of Dozzle

Dozzle and the importance of Dozzle

Aug 19, 2025

Python vs JavaScript: Which Language Should Beginners Learn in 2025?

Python vs JavaScript: Which Language Should Beginners Learn in 2025?

Oct 4, 2025

The Rise of AI-Powered Coding Assistants: How Tools Like GitHub Copilot and ChatGPT Are Changing Programming

The Rise of AI-Powered Coding Assistants: How Tools Like GitHub Copilot and ChatGPT Are Changing Programming

Oct 4, 2025

Trending Articles

Explore All
Khan Sir Offline Coaching: A Complete Guide to Courses, Fees, Facilities and Admission Process Introduction

Khan Sir Offline Coaching: A Complete Guide to Courses, Fees, Facilities and Admission Process Introduction

Sep 28, 2025

PhD Stipend Above ₹40,000 in India 2026: Universities & Fellowships List

PhD Stipend Above ₹40,000 in India 2026: Universities & Fellowships List

Feb 27, 2026

Government-Backed Free Certification Courses: 2026 Updated List

Government-Backed Free Certification Courses: 2026 Updated List

Jan 27, 2026

NEET Cutoff (2015 to 2024) 10-Year Detailed Analysis

NEET Cutoff (2015 to 2024) 10-Year Detailed Analysis

May 21, 2025

Physics Wallah IIT-JEE Coaching: Comprehensive Guide to Affordable Online Batches & Vidyapeeth Centre Fees (2025 Edition)

Physics Wallah IIT-JEE Coaching: Comprehensive Guide to Affordable Online Batches & Vidyapeeth Centre Fees (2025 Edition)

Sep 10, 2025

Hybrid Mastery: The Blended Learning Blueprint for Bank & RRB Exams 2026

Hybrid Mastery: The Blended Learning Blueprint for Bank & RRB Exams 2026

Jan 22, 2026

Credit Transfer Between Universities in India: Complete Step-by-Step Guide 2024

Credit Transfer Between Universities in India: Complete Step-by-Step Guide 2024

Feb 27, 2026

Indian vs Japanese Education: Surprising Differences You Didn’t Know

Indian vs Japanese Education: Surprising Differences You Didn’t Know

Sep 9, 2025

Crack NEET with Confidence: Ultimate Last-Minute Preparation Guide 2025

Crack NEET with Confidence: Ultimate Last-Minute Preparation Guide 2025

May 3, 2025

Khan Global Studies: Your Complete Guide to Offline & Online Coaching

Khan Global Studies: Your Complete Guide to Offline & Online Coaching

Sep 17, 2025

PW Vidyapeeth – Everything You Need to Know About Physics Wallah’s Offline Coaching

PW Vidyapeeth – Everything You Need to Know About Physics Wallah’s Offline Coaching

Sep 20, 2025

Top NEET Coaching Centers in India – Ranking, Fees, and Success Insights

Top NEET Coaching Centers in India – Ranking, Fees, and Success Insights

May 21, 2025

Government Internship Calendar 2026 Is Live: Full Official List, Deadlines & Eligibility Explained

Government Internship Calendar 2026 Is Live: Full Official List, Deadlines & Eligibility Explained

Jan 21, 2026

GATE CSE vs GATE DA & AI: Which Paper Should You Prepare For? A Comprehensive Guide for GATE 2025 Aspirants

GATE CSE vs GATE DA & AI: Which Paper Should You Prepare For? A Comprehensive Guide for GATE 2025 Aspirants

Sep 9, 2025

Allen Coaching Centre Offline Classes 2025: A Complete Guide

Allen Coaching Centre Offline Classes 2025: A Complete Guide

Sep 13, 2025