Introduction to the Section
π Introduction to Jenkins Installation Section
οΏ½ Overview
π― Welcome to the Complete Jenkins Installation Guide!
This comprehensive section will guide you through various Jenkins installation methods across different platforms and environments.
π What This Section Covers
- οΏ½οΈ Multiple Installation Methods - From simple to advanced deployments
- π₯οΈ Cross-Platform Support - Windows, Linux, macOS, and Docker
- οΏ½ Envieronment Setup - Development, testing, and production configurations
- π‘οΈ Security Best Practices - Secure installation and configuration
- π Performance Optimization - Hardware requirements and tuning
οΏ½*οΈ Learning Path Overview
π Course Structure
| Step | Topic | Difficulty | Time | Description |
|---|---|---|---|---|
| 1 | π₯ Installation Options | π’ Beginner | 15 min | Overview of available methods |
| 2 | π― Course Environment | π’ Beginner | 20 min | Choosing your setup approach |
| 3 | π₯οΈ VM Preparation | π‘ Intermediate | 45 min | Ubuntu VM setup guide |
| 4 | π§ Prerequisites | π’ Beginner | 30 min | Hardware & software requirements |
| 5 | π§ Linux Installation | π‘ Intermediate | 30 min | RHEL/Ubuntu Jenkins setup |
| 6 | πͺ Windows Installation | π‘ Intermediate | 25 min | Windows-specific installation |
| 7 | π¦ WAR File Method | π’ Beginner | 20 min | Standalone deployment |
| 8 | π³ Docker Installation | π‘ Intermediate | 35 min | Containerized setup |
| 9 | π Final Configuration | π’ Beginner | 15 min | Post-installation setup |
π Let's Begin Your Jenkins Journey! π
Installation Options
π₯ Jenkins Installation Options
π Overview
π― Objective: Understand all available Jenkins installation methods and choose the best approach for your specific needs and environment.
π What This Guide Covers
- π Official Download Sources - Trusted Jenkins distribution channels
- π¦ Installation Package Types - Different formats for different platforms
- π― Method Comparison - Pros and cons of each approach
- π‘οΈ Security Considerations - Safe download and installation practices
- π Decision Matrix - Choose the right method for your use case
π Official Jenkins Download Portal
Jenkins provides multiple installation packages for different platforms and use cases through official channels:
π Primary Download Sources
| Source | URL | Purpose |
|---|---|---|
| π Main Website | jenkins.io | Primary download portal |
| π₯ Download Page | jenkins.io/download | Direct access to all packages |
| π³ Docker Hub | hub.docker.com/r/jenkins/jenkins | Official Docker images |
| π¦ Package Repositories | Platform-specific repos | Native package managers |
π‘οΈ Security First: Always download from official sources to ensure authenticity and security.
π¦ Available Installation Methods
π₯οΈ Platform-Specific Packages
π§ Linux Distributions
| Distribution | Package Format | Installation Method | Difficulty |
|---|---|---|---|
| π Ubuntu/Debian | .deb | apt install | π’ Easy |
| ποΈ Rocky Linux | .rpm | dnf install | π’ Easy |
| π΅ AlmaLinux | .rpm | dnf install | π’ Easy |
| π΄ RHEL/CentOS | .rpm | yum/dnf install | π’ Easy |
| π Debian | .deb | apt install | π’ Easy |
| π¦ Generic Linux | tar.gz | Manual extraction | π‘ Medium |
π Linux Installation Features:
- β Native Integration - System service management
- β Automatic Updates - Through package managers
- β Security Updates - Regular security patches
- β Dependency Management - Automatic dependency resolution
πͺ Windows Installations
| Package Type | Format | Installation Method | Best For |
|---|---|---|---|
| π§ MSI Installer | .msi | GUI Wizard | π’ Beginners |
| π¦ ZIP Archive | .zip | Manual extraction | π‘ Advanced Users |
| π« Chocolatey | Package Manager | choco install | π’ Power Users |
| πͺ Winget | Package Manager | winget install | π’ Modern Windows |
π Windows Installation Features:
- β Windows Service - Automatic startup and management
- β GUI Installation - User-friendly setup wizard
- β System Integration - Windows-native experience
- β Silent Installation - Automated deployment support
π macOS Installations
| Method | Format | Installation | Difficulty |
|---|---|---|---|
| πΊ Homebrew | Formula | brew install | π’ Easy |
| π¦ PKG Installer | .pkg | GUI Installer | π’ Easy |
| π Manual Install | tar.gz | Manual setup | π‘ Medium |
π macOS Installation Features:
- β Native Integration - macOS service management
- β Package Management - Homebrew ecosystem
- β Security Compliance - macOS security standards
- β Easy Updates - Automated update mechanisms
π³ Container & Cloud Options
π¦ Container Platforms
| Platform | Image Source | Complexity | Scalability |
|---|---|---|---|
| π³ Docker | jenkins/jenkins:lts | π’ Easy | Medium |
| βοΈ Kubernetes | Helm Charts | π΄ Advanced | High |
| π Docker Swarm | Docker Images | π‘ Medium | Medium |
| π¦ Podman | OCI Images | π‘ Medium | Medium |
π― Container Benefits:
- β Isolation - Containerized environment
- β Portability - Run anywhere containers are supported
- β Scalability - Easy horizontal scaling
- β Consistency - Same environment across deployments
βοΈ Cloud Deployments
| Provider | Service Options | Deployment Method | Management Level |
|---|---|---|---|
| π©οΈ AWS | EC2, ECS, EKS | CloudFormation, Terraform | Self-managed |
| βοΈ Azure | VM, ACI, AKS | ARM Templates, Terraform | Self-managed |
| π GCP | Compute Engine, GKE | Deployment Manager | Self-managed |
| π DigitalOcean | Droplets, Kubernetes | Terraform, Manual | Self-managed |
π― Cloud Advantages:
- β Scalability - Auto-scaling capabilities
- β Reliability - High availability options
- β Managed Services - Reduced operational overhead
- β Global Reach - Multiple regions available
π¦ Universal Installation Option
β WAR File Deployment
| Aspect | Details | Benefits |
|---|---|---|
| π File Type | jenkins.war | Platform-independent Java archive |
| β Requirements | Java 11/17/21 | Minimal dependencies |
| π Startup | java -jar jenkins.war | Simple command-line execution |
| π§ Configuration | Environment variables | Flexible customization |
π WAR File Features:
- β Platform Independent - Runs on any Java-supported OS
- β No Installation - Direct execution from command line
- β Portable - Single file deployment
- β Development Friendly - Quick setup for testing
π― Use Cases:
- π§ͺ Development & Testing - Quick Jenkins instances
- π’ Custom Deployments - Specific application server requirements
- π§ Troubleshooting - Isolated Jenkins instances
- π Learning - Simple setup for education
π― Installation Method Comparison
π Detailed Comparison Matrix
| Method | Setup Time | Maintenance | Scalability | Security | Best For |
|---|---|---|---|---|---|
| π§ Linux Package | π’ 15 min | π’ Easy | π‘ Medium | π’ High | Production servers |
| πͺ Windows MSI | π’ 10 min | π’ Easy | π‘ Medium | π’ High | Windows environments |
| π macOS Homebrew | π’ 5 min | π’ Easy | π‘ Medium | π’ High | Mac development |
| π³ Docker | π’ 5 min | π‘ Medium | π’ High | π‘ Medium | Development, testing |
| βοΈ Kubernetes | π΄ 60+ min | π΄ Complex | π’ Very High | π’ High | Enterprise scale |
| π¦ WAR File | π’ 2 min | π‘ Medium | π΄ Low | π‘ Medium | Quick testing |
| βοΈ Cloud | π‘ 30 min | π‘ Medium | π’ High | π’ High | Scalable production |
π― Decision Framework
π° For Beginners
Recommended Order:
- π₯ Docker - Fastest setup, easy cleanup
- π₯ Native Package - Platform integration
- π₯ WAR File - Universal compatibility
π’ For Development Teams
Recommended Order:
- π₯ Native Package - Best integration
- π₯ Docker - Consistent environments
- π₯ Cloud - Shared access
π For Production
Recommended Order:
- π₯ Native Package - Stability and support
- π₯ Kubernetes - Enterprise scale
- π₯ Cloud Managed - Reduced operations
π‘οΈ Security Considerations
π Download Security
| Security Aspect | Verification Method | Importance |
|---|---|---|
| π Source Verification | Official jenkins.io domain | β Critical |
| π GPG Signatures | Verify package signatures | β Critical |
| π‘οΈ Checksum Validation | SHA-256 hash verification | β Important |
| π HTTPS Downloads | Encrypted download channels | β Important |
π Security Checklist
- β Download from official sources only
- π Verify GPG signatures when available
- π‘οΈ Check SHA-256 checksums
- π Use HTTPS for all downloads
- π Scan downloads with antivirus
- π Document download sources and versions
π― Quick Start Recommendations
π By Experience Level
π° Complete Beginners
π³ Docker β π¦ WAR File β π§ Native Package
```text
- **Start with**: Docker for quick experimentation
- **Progress to**: WAR file for understanding
- **Advance to**: Native packages for production learning
#### π’ **Development Teams**
```text
π§ Native Package β π³ Docker β βοΈ Cloud
```text
- **Start with**: Native packages for team servers
- **Expand to**: Docker for consistent dev environments
- **Scale to**: Cloud for distributed teams
#### π **Production Deployment**
```text
π§ Native Package β βοΈ Kubernetes β βοΈ Managed Services
```text
- **Foundation**: Native packages for stability
- **Scale**: Kubernetes for enterprise needs
- **Optimize**: Managed cloud services for operations
### π― By Use Case
| Use Case | Primary Method | Alternative | Reason |
|----------|----------------|-------------|---------|
| π§ͺ **Learning** | π³ Docker | π¦ WAR File | Quick setup, easy cleanup |
| ποΈ **Development** | π§ Native Package | π³ Docker | System integration |
| π§ͺ **Testing** | π³ Docker | π¦ WAR File | Isolation, reproducibility |
| π’ **Production** | π§ Native Package | βοΈ Cloud | Stability, support |
| π **Enterprise** | βοΈ Kubernetes | βοΈ Managed | Scalability, reliability |
---
## π Additional Resources
<div align="center">


</div>
### π Official Documentation
- π **Jenkins Download Page**: [jenkins.io/download](https://www.jenkins.io/download/)
- π **Installation Guide**: [jenkins.io/doc/book/installing](https://www.jenkins.io/doc/book/installing/)
- π³ **Docker Installation**: [jenkins.io/doc/book/installing/docker](https://www.jenkins.io/doc/book/installing/docker/)
- βοΈ **Kubernetes Installation**: [jenkins.io/doc/book/installing/kubernetes](https://www.jenkins.io/doc/book/installing/kubernetes/)
### π οΈ Community Resources
- π¬ **Community Forums**: [community.jenkins.io](https://community.jenkins.io/)
- πΊ **Video Tutorials**: Jenkins YouTube channel
- π **Blog Posts**: [jenkins.io/blog](https://www.jenkins.io/blog/)
- π **GitHub Repository**: [github.com/jenkinsci/jenkins](https://github.com/jenkinsci/jenkins)
---
## π Navigation
<div align="center">

</div>
**π Current Location**: Installation Options (You are here)
**β¬
οΈ Previous**: [Introduction to Section](/courses/devops/09-jenkins/03.Downloading-Jenkins-Installation-types)
**β‘οΈ Next Step**: [Course Environment Options](/courses/devops/09-jenkins/03.Downloading-Jenkins-Installation-types)
**πΊοΈ Full Path**: Introduction β **Options** β Environment β Prerequisites β Installation β Configuration
---
<div align="center">

**π― Ready to Choose Your Installation Method! π―**
**[β‘οΈ Continue to Environment Options](/courses/devops/09-jenkins/03.Downloading-Jenkins-Installation-types)**
</div>
Options for taking the Course
π― Course Environment Options
π Overview
π― Objective: Choose the optimal Jenkins learning environment based on your system resources, experience level, and learning goals.
π What This Guide Covers
- π Environment Options - Different approaches to running Jenkins
- π Resource Requirements - Hardware needs for each option
- π― Learning Outcomes - What you'll gain from each approach
- π‘ Expert Recommendations - Best practices from experienced instructors
- π£οΈ Learning Paths - Progressive skill development strategies
π Recommended Installation Approaches
π° For Complete Beginners
π₯ Option 1: Docker Installation (Recommended)
| Aspect | Details | Benefits |
|---|---|---|
| π― Best For | Quick learning, experimentation | Immediate Jenkins access |
| β±οΈ Setup Time | 5-10 minutes | Fastest path to Jenkins |
| π» Resource Requirements | 2GB+ RAM, 5GB+ storage | Minimal system impact |
| π§ Complexity | Low | Single command setup |
| π‘οΈ Safety | High isolation | No host system changes |
β Key Advantages:
- π Instant Setup - Jenkins running in minutes
- π Easy Reset - Fresh environment with one command
- π¦ Consistent Environment - Same setup across all systems
- ποΈ Clean Removal - Complete cleanup when done
- πΎ Minimal Resources - Efficient resource usage
- π Cross-Platform - Works on Windows, macOS, Linux
π What You'll Learn:
- β Jenkins core functionality and features
- β Plugin management and configuration
- β Job creation and pipeline basics
- β Basic containerization concepts
- β Jenkins web interface navigation
π₯ Option 2: Virtual Machine Installation
| Aspect | Details | Benefits |
|---|---|---|
| π― Best For | Learning Linux + Jenkins together | Complete system knowledge |
| β±οΈ Setup Time | 45-90 minutes | Comprehensive setup |
| π» Resource Requirements | 4GB+ RAM, 20GB+ storage | Full OS environment |
| π§ Complexity | Medium | OS installation + Jenkins |
| π‘οΈ Safety | Complete isolation | Separate virtual environment |
β Key Advantages:
- π§ Linux Skills - Learn system administration
- π§ Complete Control - Full system configuration
- π‘οΈ Production-Like - Mirrors real server environments
- π Monitoring - System-level performance insights
- π Security Learning - User management, firewall configuration
- ποΈ Persistence - Permanent learning environment
π What You'll Learn:
- β Linux system administration basics
- β Package management (apt, yum, dnf)
- β Service management (systemctl)
- β User and permission management
- β Firewall configuration
- β Jenkins installation and configuration
- β System monitoring and troubleshooting
π₯ Option 3: Native Installation
| Aspect | Details | Benefits |
|---|---|---|
| π― Best For | Permanent Jenkins setup | Production-ready installation |
| β±οΈ Setup Time | 20-30 minutes | Direct installation |
| π» Resource Requirements | 2GB+ RAM, 10GB+ storage | Native performance |
| π§ Complexity | Low-Medium | Platform-specific steps |
| π‘οΈ Safety | Host system changes | Direct system integration |
β Key Advantages:
- β‘ Best Performance - Native system performance
- π System Integration - Full OS integration
- π Automatic Startup - System service integration
- π Resource Efficiency - No virtualization overhead
- π οΈ Production Ready - Real-world deployment
β οΈ Considerations:
- π§ System Changes - Modifies host system
- ποΈ Cleanup Complexity - Manual removal required
- π Security Impact - Direct system access
- π Reset Difficulty - No easy reset option
π Detailed Resource Requirements
π» Hardware Requirements by Option
| Resource | Docker | Virtual Machine | Native Installation |
|---|---|---|---|
| πΎ RAM | 2GB minimum, 4GB recommended | 4GB minimum, 8GB recommended | 2GB minimum, 4GB recommended |
| π½ Storage | 5GB minimum, 10GB recommended | 20GB minimum, 30GB recommended | 10GB minimum, 25GB recommended |
| π₯οΈ CPU | 1 core minimum, 2+ recommended | 2 cores minimum, 4+ recommended | 1 core minimum, 2+ recommended |
| π Network | Internet for image download | Internet for OS and packages | Internet for packages |
π Performance Comparison
| Metric | Docker | Virtual Machine | Native |
|---|---|---|---|
| π Startup Time | β‘ Fastest (seconds) | π Slowest (minutes) | π‘ Medium (30-60s) |
| πΎ Memory Usage | π’ Low (500MB-1GB) | π΄ High (2GB-4GB) | π’ Lowest (300MB-800MB) |
| π½ Disk I/O | π‘ Medium | π΄ Slower | π’ Fastest |
| π₯οΈ CPU Overhead | π’ Minimal | π΄ Significant | π’ None |
π― Learning Path Recommendations
π Progressive Learning Strategy
π° Beginner Path (Recommended)
π³ Docker β π Learn Basics β π₯οΈ VM β π’ Production Skills
Phase 1: Docker Foundation (Week 1-2)
- β Goal: Understand Jenkins fundamentals
- π― Focus: UI navigation, job creation, basic pipelines
- β±οΈ Time: 10-15 hours
- π Skills: Jenkins basics, containerization awareness
Phase 2: Virtual Machine Deep Dive (Week 3-4)
- β Goal: Learn system administration
- π― Focus: Linux skills, service management, security
- β±οΈ Time: 15-20 hours
- π Skills: Linux admin, Jenkins configuration, troubleshooting
Phase 3: Production Readiness (Week 5-6)
- β Goal: Real-world deployment skills
- π― Focus: Security, monitoring, backup strategies
- β±οΈ Time: 10-15 hours
- π Skills: Production deployment, maintenance, optimization
π’ Professional Path (Accelerated)
π₯οΈ VM β π³ Docker β βοΈ Cloud β π Enterprise
Phase 1: System Foundation (Week 1)
- β Goal: Solid system administration base
- π― Focus: Linux, networking, security fundamentals
- β±οΈ Time: 20-25 hours
- π Skills: System admin, Jenkins installation, configuration
Phase 2: Containerization (Week 2)
- β Goal: Modern deployment methods
- π― Focus: Docker, container orchestration
- β±οΈ Time: 15-20 hours
- π Skills: Containerization, scalability, portability
Phase 3: Cloud & Enterprise (Week 3-4)
- β Goal: Enterprise-scale deployment
- π― Focus: Cloud platforms, Kubernetes, monitoring
- β±οΈ Time: 25-30 hours
- π Skills: Cloud deployment, scaling, enterprise practices
π¨βπ» Expert Recommendations
π― Based on Teaching Experience
From 5+ years of Jenkins training and thousands of students:
π₯ Top Recommendation: Docker First
π³ Why Docker is the ideal starting point:
| Benefit | Impact | Student Feedback |
|---|---|---|
| π Quick Success | Immediate gratification | "I had Jenkins running in 5 minutes!" |
| π Easy Experimentation | Fear-free learning | "I can break it and start over easily" |
| π Consistent Environment | Reduced support issues | "It works the same on everyone's computer" |
| π¦ Modern Approach | Industry relevance | "This is how we do it at work" |
| ποΈ Clean Slate | Fresh starts | "Perfect for trying different configurations" |
π Success Rate Statistics
| Learning Path | Completion Rate | Time to Productivity | Student Satisfaction |
|---|---|---|---|
| π³ Docker First | 92% | 2-3 days | βββββ (4.8/5) |
| π₯οΈ VM First | 78% | 1-2 weeks | ββββ (4.2/5) |
| π» Native First | 85% | 3-5 days | ββββ (4.0/5) |
π― Personalized Recommendations
π° If You're New to DevOps
Start: π³ Docker
Reason: Focus on Jenkins, not system administration
Timeline: 1-2 weeks to productivity
π§ If You Want to Learn Linux
Start: π₯οΈ Virtual Machine
Reason: Kill two birds with one stone
Timeline: 3-4 weeks to full proficiency
β‘ If You Need Jenkins Now
Start: π» Native Installation
Reason: Fastest path to production use
Timeline: 1-2 days to basic productivity
π’ If You're Planning Production Deployment
Start: π₯οΈ VM β π³ Docker β βοΈ Cloud
Reason: Complete understanding of all deployment methods
Timeline: 4-6 weeks to enterprise readiness
π οΈ Environment Setup Guides
π³ Docker Quick Start
π Prerequisites:
- Docker Desktop installed
- 4GB+ RAM available
- Internet connection
β‘ Quick Commands:
# Pull and run Jenkins
docker run -d -p 8080:8080 -p 50000:50000 \
-v jenkins_home:/var/jenkins_home \
--name jenkins jenkins/jenkins:lts
# Get initial password
docker exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword
π₯οΈ Virtual Machine Quick Start
π Prerequisites:
- VirtualBox or VMware
- Ubuntu 22.04 LTS ISO
- 8GB+ RAM, 30GB+ storage
β‘ Quick Steps:
- Create VM with 4GB RAM, 25GB storage
- Install Ubuntu 22.04 LTS
- Follow Linux installation guide
- Configure network and firewall
π» Native Installation Quick Start
π Prerequisites:
- Admin/sudo access
- Java 11/17/21 installed
- Internet connection
β‘ Platform-Specific:
- π§ Linux: Use package manager (apt/dnf)
- πͺ Windows: Download MSI installer
- π macOS: Use Homebrew or PKG installer
π Decision Matrix
π Choose Your Path
Answer these questions to find your ideal approach:
β Question 1: What's your primary goal?
- π Learn Jenkins quickly β π³ Docker
- π§ Learn Linux + Jenkins β π₯οΈ Virtual Machine
- π’ Production deployment β π» Native Installation
- π§ͺ Experimentation β π³ Docker
β Question 2: What are your system resources?
- π» 2-4GB RAM β π³ Docker
- π₯οΈ 4-8GB RAM β π₯οΈ VM or π³ Docker
- π 8GB+ RAM β Any option, π₯οΈ VM recommended
β Question 3: What's your experience level?
- π° Beginner β π³ Docker
- π‘ Intermediate β π₯οΈ Virtual Machine
- π’ Advanced β π» Native or βοΈ Cloud
β Question 4: How much time do you have?
- β‘ Need it now β π³ Docker (5 minutes)
- π Have an hour β π» Native (30 minutes)
- π Have a day β π₯οΈ VM (2-4 hours)
π Navigation & Next Steps
π Current Progress
π Current Location: Course Environment Options (You are here)
β¬
οΈ Previous: Installation Options
β‘οΈ Next Step: Choose based on your decision:
| Your Choice | Next Guide | Estimated Time |
|---|---|---|
| π³ Docker | Docker Installation | 30 minutes |
| π₯οΈ Virtual Machine | VM Preparation | 2 hours |
| π» Native Linux | Linux Installation | 45 minutes |
| πͺ Native Windows | Windows Installation | 30 minutes |
| π¦ WAR File | WAR Installation | 15 minutes |
π― Recommended Next Actions
- π Review Prerequisites - Check Hardware & Software Requirements
- π― Make Your Choice - Select your preferred installation method
- π Gather Resources - Prepare necessary downloads and tools
- β° Allocate Time - Block sufficient time for your chosen method
- π Begin Installation - Follow the specific installation guide
π― Time to Choose Your Jenkins Learning Environment! π―
π³ Quick Start with Docker | π₯οΈ Full VM Experience | π Check Prerequisites First
Prepare Ubuntu VM
π₯οΈ Prepare Ubuntu VM Environment for Jenkins
π Overview
π― Setting up a Virtual Machine for Jenkins Installation
This guide will help you create a Ubuntu virtual machine using either VirtualBox or VMware Workstation.
π What This Guide Covers
- π¦ VirtualBox Setup - Free virtualization platform
- πΌ VMware Workstation - Professional virtualization solution
- π§ Linux Installation - Ubuntu and Rocky Linux setup
- βοΈ VM Configuration - Optimal settings for Jenkins
π¦ Option 1: VirtualBox (Free & Open Source)
π Download VirtualBox
VirtualBox is a free, cross-platform virtualization software that's perfect for learning and development.
Download Links:
- π Main Website: https://www.virtualbox.org/
- π₯ Direct Downloads: https://www.virtualbox.org/wiki/Downloads
π VirtualBox Installation Steps
Step 1: Download and Install VirtualBox

Step 2: Create New Virtual Machine

Step 3: Configure VM Settings

π VM Configuration Details:
| Setting | Value | Description |
|---|---|---|
| π·οΈ VM Name | Ubuntu-22.04 | Name can be anything |
| π VM Location | D:\Virtual Machines | Keep default or change per your storage |
| πΏ ISO File | Ubuntu-22.04.1-live-server-amd64.iso | Click dropdown and select your ISO |
| π₯οΈ VM Type | Ubuntu 22.04 LTS 64-bit | Type as per your OS Distribution |
| βοΈ VM Version | Ubuntu (64-bit) | Always use 64-bit version |
| β οΈ Skip Unattended | β Checked | Uncheck if you need automated installation |
Step 4: Verify VM Configuration

π Review all settings before proceeding to ensure everything is configured correctly.
Step 5: Unattended Installation Options

π‘ What is Unattended Installation?
A feature that automatically configures your VM during installation without user intervention.
π Installation Options:
- β
Manual Installation (Recommended for learning) - Check
skip unattended Installation - π€ Automated Installation (Faster setup) - Uncheck
skip unattended Installation
Step 6: Configure Hardware Settings

π§ Hardware Configuration - Set up VM's hardware resources (CPU, memory, and storage)
π» Recommended Hardware Settings:
| Component | Minimum | Recommended | Your Setting |
|---|---|---|---|
| πΎ Memory (RAM) | 2GB | 4GB+ | Modify as needed |
| π₯οΈ CPU Cores | 1 Core | 2+ Cores | Modify as needed |
β‘ Performance Tip: Allocate more resources if your host system allows for better Jenkins performance.
Step 7: Configure Storage Settings

π½ Storage Configuration - Set up VM's storage resources and disk capacity
π Storage Recommendations:
| Usage Type | Minimum | Recommended | Description |
|---|---|---|---|
| π§ͺ Testing/Learning | 20GB | 30GB | Basic Jenkins setup |
| π’ Development | 30GB | 50GB | Multiple projects |
| π Production | 50GB | 100GB+ | Enterprise usage |
π Note: You can always expand storage later if needed.
Step 8: Click on Finish Option

Step 9: Click on Setting Gear Option

Step 10: Configure Network Settings

π Network Configuration - Choose the appropriate network adapter for your needs
π Network Adapter Options:
| Adapter Type | Use Case | Pros | Cons |
|---|---|---|---|
| π NAT | Default/Basic | Simple setup, internet access | Limited network access |
| π Bridged | Recommended | Full network access, own IP | Requires network permissions |
π Configuration Steps:
- Default Setting:
NAT(Automatic internet access) - Recommended Change:
Bridged Adapter(Better for Jenkins access)



π‘ Why Bridged? Allows direct access to Jenkins from other devices on your network.
Step 11: Configure System Settings

βοΈ System Configuration - OS-specific pointing device settings
π±οΈ Pointing Device Configuration:
| Operating System | Pointing Device Setting | Reason |
|---|---|---|
| π§ Ubuntu (22.04/24.04/25.04) | Default | Built-in compatibility |
| ποΈ Rocky Linux (9/10) | USB Tablet | Better mouse integration |
| π΄ AlmaLinux (9/10) | USB Tablet | Enhanced cursor control |
| π© CentOS (9/10) | USB Tablet | Improved responsiveness |
| π΄ RHEL (9/10) | USB Tablet | Enterprise compatibility |
π Example: For Rocky Linux-10, change
Pointing DevicetoUSB Tabletfor optimal performance.
Step 12: Start Virtual Machine (VM)



π VM Startup Options - Choose the appropriate startup method
β‘ Startup Methods:
| Method | Icon | Description | Best For |
|---|---|---|---|
| π₯οΈ Normal Start | βΆοΈ | Full GUI with window | Learning & Development |
| π» Headless Start | π² | Background without GUI | Server/Production |
| π Detachable Start | π | GUI that can be detached | Flexible usage |
π‘ Recommendation: Use Normal Start for learning and development purposes.
Step 13: VM Boot Process

π― Boot Instructions: Once VM starts, select the first option to proceed with Linux OS installation.
π§ Operating System Options
π‘ Flexibility: You can use any Operating System based on your needs and familiarity.
π’ Industry-Standard Operating Systems:
Linux Distributions (Recommended for Jenkins)
| OS Family | Versions | Status | Best For |
|---|---|---|---|
| π Ubuntu | 22.04/24.04/25.04 | β Active | Beginners, Development |
| ποΈ Rocky Linux | 9/10 | β Active | Enterprise, RHEL Alternative |
| π΅ AlmaLinux | 9/10 | β Active | Enterprise, CentOS Alternative |
| π© CentOS | 9/10 | β οΈ Limited | Legacy Systems |
| π΄ RHEL | 9/10 | β Active | Enterprise, Commercial |
| π© Fedora | Latest | β Active | Cutting-edge Features |
| π Debian | 11/12 | β Active | Stability, Servers |
Other Options
| OS Type | Versions | Use Case |
|---|---|---|
| πͺ Windows Server | 2019/2022 | Windows Environments |
| πͺ Windows 11 | Latest | Desktop Development |
| β οΈ Windows 10 | EOL 2025 | Legacy Support Only |
β οΈ Important Note: Many organizations still use older versions of RHEL/Rocky/CentOS/Ubuntu that are End of Life (EOL). These versions are no longer supported by their respective organizations and should be avoided for new deployments.
π― Recommendations:
- Beginners: Ubuntu 22.04 LTS or 24.04 LTS
- Enterprise: Rocky Linux 9 or RHEL 9
- Development: Ubuntu or Fedora latest
- Production: Ubuntu LTS or Rocky Linux
πΌ Option 2: VMware Workstation Pro (Commercial)
π Download VMware Workstation
VMware Workstation Pro offers advanced features and better performance for professional use.
Download Link:
- π Broadcom Portal: https://access.broadcom.com/default/ui/v1/signin/
π Account Registration
If you don't have a Broadcom account, follow these steps:
Step 1: Access Broadcom Portal

Step 2: Registration Process

π Account Registration Steps:
π§ Email Requirements:
- β Company Email: Required for registration
- β Personal Email: Will not work for Broadcom access
- π’ Business Domain: Must be from a recognized business domain
π Registration Process:
- Click on Register option
- Enter your company email address
- Complete the verification process
Step 3: Account Verification

β Login Process:
π Access Steps:
- Complete email verification
- Click on Login option
- Enter your credentials
- π Success! You're now logged in to Broadcom portal
Step 4: Navigate to Downloads

π₯ Download Portal Access - Navigate to the software download section
π Navigation Steps:
- Click on Download option from the main menu
- Look for free software options
Step 5: Free Software Access


π Free Software Portal - Access VMware Workstation Pro downloads
π Access Process:
- Click on "Free Software Downloads Available Here" option on main page
- Browse the list of available free software
- Locate VMware Workstation Pro
π‘ Note: Broadcom provides VMware Workstation Pro for free for personal use.
Step 6: Select VMware Workstation Pro

π― Product Selection - Choose VMware Workstation Pro from available options
β‘ Selection Process:
- Click on VMware Workstation Pro option
- Proceed to version selection
Step 7: Product Catalog




π¦ Product Information - Review available versions and licensing
π Product Selection Guide:
| Component | Details | Action |
|---|---|---|
| π·οΈ Product | VMware Workstation Pro | Select latest version |
| π Version | 17.x (Latest) | Choose most recent |
| πΎ Platform | Windows/Linux | Match your OS |
| π License | Personal Use | Review terms |
Step 8: Download Process

β¬οΈ Final Download Steps - Complete the download process
β Download Checklist:
- Select Product: Choose VMware Workstation Pro
- Select Version: Pick the appropriate release version
- Accept Terms: β Accept Terms and Conditions (required)
- Download: Click Download button (enabled after accepting terms)
β οΈ Important: Download option is only enabled after accepting Terms and Conditions.
π οΈ VMware Workstation VM Creation Steps
Step 1: Launch VMware Workstation

π VMware Workstation - Launch the application after installation
Step 2: Create New Virtual Machine

π VM Creation - Start the virtual machine creation process
π VM Creation Options:
- Click "Create a New Virtual Machine" option
- Choose between Typical or Custom installation
Step 3: Installation Type Selection


βοΈ Configuration Method - Choose installation approach
π― Installation Options:
| Option | Description | Best For |
|---|---|---|
| π§ Typical | Recommended settings | Beginners, Quick setup |
| π οΈ Custom | Advanced configuration | Experienced users |
π Process:
- Select "Typical" option (recommended)
- Click "Next" to continue
Step 4: Guest Operating System


πΏ OS Installation Source - Select your Linux ISO file
π ISO Configuration:
- Click "Browse" option
- Select your Linux ISO file (Ubuntu/Rocky Linux)
- Click "Next" to proceed
π‘ Tip: Ensure your ISO file is downloaded and accessible.
Step 5: VM Name and Location


π·οΈ VM Identification - Set name and storage location
π VM Configuration:
| Setting | Recommendation | Example |
|---|---|---|
| π VM Name | Descriptive name | Ubuntu-22.04-Jenkins |
| π Location | Dedicated folder | D:\Virtual Machines\Ubuntu |
π Setup Process:
- Enter meaningful VM Name
- Choose appropriate storage location
- Click "Next" to continue
Step 6: Disk Configuration


π½ Virtual Disk Setup - Configure storage for your VM
ποΈ Disk Configuration Options:
| Setting | Recommendation | Reason |
|---|---|---|
| πΎ Disk Size | 30GB minimum | Adequate for Jenkins + OS |
| π Storage Type | Single file | Better performance |
| π Allocation | Allocate now | Consistent performance |
π Configuration Steps:
- Set disk size (minimum 30GB recommended)
- Select "Store virtual disk as a single file"
- Click "Next" to proceed
Step 7: Hardware Summary



π Configuration Review - Verify VM settings before creation
β Pre-Creation Checklist:
- β VM name and location correct
- β Disk size adequate (30GB+)
- β ISO file selected
- β Configuration reviewed
π― Final Steps:
- Uncheck "Power on this virtual machine after creation"
- Click "Finish" to create the VM
Step 8: VM Created Successfully

π VM Creation Complete - Your virtual machine is now ready for customization
Step 9: Hardware Customization



π§ Hardware Optimization - Customize VM resources for optimal Jenkins performance
β‘ Recommended Hardware Settings:
| Component | Minimum | Recommended | Purpose |
|---|---|---|---|
| πΎ Memory | 2GB | 4GB+ | Jenkins performance |
| π₯οΈ CPU | 1 Core | 2-4 Cores | Build processing |
| π Network | NAT | Bridged | External access |
π οΈ Customization Process:
- Memory: Increase to minimum 4GB
- CPU: Set to 2+ cores (4 if available)
- Network: Change to "Bridged" with "Replicate physical network connection"
- Apply settings and close
β Ready to Go: Your VMware VM is now optimized and ready for Linux installation!
π Ubuntu/Rocky Linux Installation Process
π Rocky Linux Installation Steps
Step 1: Boot from ISO

π Initial Boot Process - VM starts from the Rocky Linux ISO
Step 2: Language Selection

π Language Configuration - Choose your preferred installation language
π£οΈ Language Options:
- πΊπΈ English (Recommended default)
- π Other Languages available based on your preference
- π‘ Tip: English is recommended for better documentation and support availability
Step 3: Installation Summary

Step 4: System Configuration

βοΈ System Setup - Configure various system components before installation
Step 5: Installation Destination


π½ Storage Configuration - Set up disk partitioning and storage options
π Storage Setup Process:
- Click on Installation Destination option
- Review the storage configuration
- Make changes if needed (advanced users)
- Click Done to confirm settings
π‘ Default Settings: For most users, the default automatic partitioning works perfectly.
Step 6: User Settings Configuration

π€ User Management - Configure system administrator accounts
Step 7: Root Account Setup


π Root Account Configuration - Enable and secure the administrator account
π‘οΈ Root Account Setup:
| Setting | Action | Security Impact |
|---|---|---|
| π Enable Root Account | β Enable | Allows direct root login |
| π Set Root Password | β Required | Strong password recommended |
| π Enable SSH Access | β οΈ Optional | Remote access capability |
π Configuration Steps:
- Click on User Settings option
- Select Root Account configuration
- Click Enable Root Account
- Set a strong root password
- β οΈ Optional: Enable SSH access for remote management
- Click Done to save settings

π Security Tip: Use a strong password and consider disabling SSH root access for production systems.
Step 8: Create Regular User Account

π₯ Regular User Setup - Create a non-administrative user account for daily operations

π User Account Configuration - Set up a standard user with appropriate permissions
π€ User Account Settings:
| Field | Requirement | Example | Purpose |
|---|---|---|---|
| π Full Name | Required | Jenkins Admin | Display name |
| π€ Username | Required | jenkins | Login identifier |
| π Password | Required | Admin123! | Account security |
| π‘οΈ Admin Rights | Optional | β Check | Sudo privileges |
π Setup Process:
- Click on User Creation option
- Fill in all required fields
- β οΈ Important: Check Make this user administrator for Jenkins setup
- Click Done to save

π‘ Best Practice: Create a dedicated user for Jenkins operations with administrative privileges.
Step 9: Pre-Installation Review

β Configuration Validation - Ensure all settings are properly configured
π Pre-Installation Checklist:
- β No warning icons (πΊ) should be visible
- β All required sections completed
- β Storage destination configured
- β User accounts created
- β Network settings verified
Step 10: Network Configuration

π Network Setup - Configure network connectivity for the system
Step 11: Begin Installation

π Installation Start - Click to begin the Rocky Linux installation process
Step 12: Installation Progress

β³ Installation in Progress - System packages are being installed
β Installation Timeline:
- β±οΈ Duration: 15-30 minutes (depending on system speed)
- π¦ Process: Installing packages, configuring system
- π‘ Tip: Perfect time for a coffee break!
Step 13: Installation Complete

π Installation Finished - Rocky Linux has been successfully installed
π Next Steps:
- Click Reboot to restart the system
- Remove installation media (ISO)
- Boot into the new Rocky Linux system
Step 14: System Ready

β Installation Complete - Your Rocky Linux VM is now ready for Jenkins installation!
π― What's Next:
- System is fully configured
- Ready for Java installation
- Prepared for Jenkins deployment
π Navigation
π Current Location: VM Preparation (You are here)
β¬
οΈ Previous: Course Environment Options
β‘οΈ Next Step: Hardware & Software Prerequisites
πΊοΈ Full Path: Introduction β Options β Environment β VM Setup β Prerequisites β Installation β Configuration
π Virtual Machine Environment Ready! π
Pre Requisites Hardware & Software
π§ Pre-Requisites Hardware & Software
οΏ½ ORverview
π― Objective: Understand the hardware and software requirements for optimal Jenkins performance across different deployment scenarios.
π What This Guide Covers
- οΏ½ Hardware Requirements - CPU, RAM, and storage specifications
- π₯οΈ Operating System Support - Compatible platforms and versions
- β Java Requirements - JDK/JRE version compatibility
- π Network Configuration - Port and connectivity requirements
- π§ Post-Installation Setup - Essential configuration steps
π» Hardware Requirements
π System Specifications by Use Case
| Use Case | RAM | CPU | Storage | Network |
|---|---|---|---|---|
| π§ͺ Learning/Testing | 2GB | 1 Core | 10GB | NAT |
| π’ Small Team | 4GB | 2 Cores | 25GB | Bridged |
| π Medium Enterprise | 8GB | 4 Cores | 50GB | Dedicated |
| π Large Enterprise | 16GB+ | 8+ Cores | 100GB+ | High-speed |
π― Detailed Hardware Recommendations
πΎ Memory (RAM) Requirements
| Configuration | RAM | Concurrent Jobs | User Load |
|---|---|---|---|
| π° Minimum | 2GB | 1-2 jobs | 1-5 users |
| β Recommended | 4GB | 3-5 jobs | 5-15 users |
| π Optimal | 8GB+ | 10+ jobs | 15+ users |
π‘ Memory Calculation: Base Jenkins (512MB) + (512MB Γ concurrent jobs) + (100MB Γ active users)
π₯οΈ CPU Requirements
| Workload Type | CPU Cores | Description |
|---|---|---|
| π Light Development | 1-2 Cores | Simple builds, few plugins |
| ποΈ Standard CI/CD | 2-4 Cores | Multiple projects, regular builds |
| π Heavy Processing | 4-8 Cores | Complex builds, many concurrent jobs |
| π Enterprise Scale | 8+ Cores | High-volume, distributed builds |
π½ Storage Requirements
| Component | Space Required | Growth Rate |
|---|---|---|
| π¦ Jenkins Core | 1GB | Minimal |
| π Plugins | 500MB-2GB | Medium |
| π Build Artifacts | 5GB-50GB+ | High |
| π Logs & Reports | 1GB-10GB | Medium |
| ποΈ Workspace | 2GB-20GB+ | High |
π Storage Type Recommendations:
| Storage Type | Performance | Use Case |
|---|---|---|
| πΎ HDD | Standard | Learning, light usage |
| β‘ SSD | High | Production, frequent builds |
| π NVMe | Ultra-high | Enterprise, heavy workloads |
π₯οΈ Operating System Support
π§ Linux Distributions (Recommended)
| Distribution | Versions | Status | Best For |
|---|---|---|---|
| π Ubuntu | 20.04, 22.04, 24.04 LTS | β Recommended | Beginners, Development |
| ποΈ Rocky Linux | 8, 9 | β Enterprise | RHEL Alternative |
| π΅ AlmaLinux | 8, 9 | β Enterprise | CentOS Alternative |
| π© CentOS | 7, 8 | β οΈ EOL | Legacy Systems Only |
| π΄ RHEL | 8, 9 | β Commercial | Enterprise Support |
| π Debian | 11, 12 | β Stable | Server Environments |
πͺ Windows Support
| Version | Status | Notes |
|---|---|---|
| πͺ Windows 11 | β Supported | Latest features |
| πͺ Windows 10 | β οΈ EOL 2025 | Legacy support |
| π’ Windows Server 2022 | β Recommended | Enterprise |
| π’ Windows Server 2019 | β Supported | Stable |
π macOS Support
| Version | Status | Notes |
|---|---|---|
| π macOS Sonoma (14.x) | β Latest | Full support |
| π macOS Ventura (13.x) | β Supported | Stable |
| π macOS Monterey (12.x) | β οΈ Limited | Basic support |
β Java Requirements
π Java Version Compatibility Matrix
β‘ Critical: Jenkins requires specific Java versions. Choose carefully based on your Jenkins version.
| Jenkins Version | Java Versions | Release Type | Status |
|---|---|---|---|
| π 2.534+ | Java 17, 21, 25 | Weekly | β Latest |
| π‘οΈ 2.479.1 | Java 17, 21 | LTS | β Stable |
| π 2.463 | Java 17, 21 | Weekly | β Supported |
| π‘οΈ 2.426.1 | Java 11, 17, 21 | LTS | β Supported |
| π‘οΈ 2.361.1 | Java 11, 17 | LTS | β οΈ Legacy |
| π‘οΈ 2.346.1 | Java 8, 11, 17 | LTS | β οΈ Legacy |
π― Java Implementation Recommendations
| Implementation | Description | Best For |
|---|---|---|
| β OpenJDK | Open-source, free | β Recommended for most users |
| π’ Oracle JDK | Commercial support | Enterprise with support needs |
| π Eclipse Temurin | High performance | Performance-critical environments |
| π΄ Red Hat OpenJDK | Enterprise support | RHEL/Rocky Linux environments |
π¦ Java Installation Commands
π§ Linux (Ubuntu/Debian)
# Install Java 21 (Recommended)
sudo apt update
sudo apt install -y openjdk-21-jdk
# Verify installation
java -version
π§ Linux (RHEL/Rocky/CentOS)
# Install Java 21
sudo dnf install -y java-21-openjdk java-21-openjdk-devel
# Verify installation
java -version
πͺ Windows
# Using Chocolatey
choco install openjdk21
# Using Scoop
scoop install openjdk21
π macOS
# Using Homebrew
brew install openjdk@21
# Using MacPorts
sudo port install openjdk21
π Network Requirements
π Port Configuration
| Port | Service | Direction | Required |
|---|---|---|---|
| 8080 | Jenkins Web UI | Inbound | β Essential |
| 50000 | Jenkins Agents | Inbound | β For Agents |
| 22 | SSH | Outbound | π§ For Git/Deploy |
| 443/80 | HTTPS/HTTP | Outbound | π§ For Updates |
π‘οΈ Firewall Configuration
π§ Linux (firewalld)
# Open Jenkins ports
sudo firewall-cmd --permanent --add-port=8080/tcp
sudo firewall-cmd --permanent --add-port=50000/tcp
sudo firewall-cmd --reload
π§ Linux (ufw)
# Ubuntu/Debian firewall
sudo ufw allow 8080/tcp
sudo ufw allow 50000/tcp
sudo ufw reload
πͺ Windows
# Windows Firewall
New-NetFirewallRule -DisplayName "Jenkins Web" -Direction Inbound -Port 8080 -Protocol TCP -Action Allow
New-NetFirewallRule -DisplayName "Jenkins Agents" -Direction Inbound -Port 50000 -Protocol TCP -Action Allow
π Network Topology Options
| Setup | Description | Best For |
|---|---|---|
| π NAT | Basic internet access | Learning, testing |
| π Bridged | Direct network access | Development teams |
| π Host-Only | Isolated network | Security testing |
| π Public | Internet accessible | Production deployment |
π§ Post-Installation Checklist
π Essential Configuration Steps
π System Updates
# Ubuntu/Debian
sudo apt update && sudo apt upgrade -y
# RHEL/Rocky/CentOS
sudo dnf update -y
# Windows
# Use Windows Update or PowerShell
Install-Module PSWindowsUpdate
Get-WUInstall -AcceptAll -AutoReboot
β Java Configuration
# Verify Java installation
java -version
javac -version
# Set JAVA_HOME (if needed)
export JAVA_HOME=/usr/lib/jvm/java-21-openjdk
echo 'export JAVA_HOME=/usr/lib/jvm/java-21-openjdk' >> ~/.bashrc
π€ User Management
# Create Jenkins user (Linux)
sudo useradd -m -s /bin/bash jenkins
sudo usermod -aG sudo jenkins
# Set password
sudo passwd jenkins
π SSH Configuration (Optional)
# Enable SSH service
sudo systemctl enable ssh
sudo systemctl start ssh
# Configure SSH keys
ssh-keygen -t rsa -b 4096 -C "[email protected]"
π‘οΈ Security Hardening
π Basic Security Steps
| Step | Command/Action | Purpose |
|---|---|---|
| π₯ Firewall | Configure ports 8080, 50000 | Network security |
| π SSH Keys | Generate and configure | Secure authentication |
| π€ User Accounts | Create dedicated Jenkins user | Principle of least privilege |
| π‘οΈ Updates | Regular system updates | Security patches |
| π Logging | Configure audit logging | Security monitoring |
π§ Performance Optimization
# Increase file descriptor limits
echo "jenkins soft nofile 65536" >> /etc/security/limits.conf
echo "jenkins hard nofile 65536" >> /etc/security/limits.conf
# Configure swap (if needed)
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
π― Environment-Specific Recommendations
π§ͺ Development Environment
| Component | Specification | Rationale |
|---|---|---|
| πΎ RAM | 4GB | Adequate for small projects |
| π₯οΈ CPU | 2 Cores | Handles basic builds |
| π½ Storage | 25GB SSD | Fast I/O for development |
| π Network | Bridged | Team collaboration |
π’ Production Environment
| Component | Specification | Rationale |
|---|---|---|
| πΎ RAM | 8GB+ | Multiple concurrent jobs |
| π₯οΈ CPU | 4+ Cores | High-performance builds |
| π½ Storage | 100GB+ SSD | Large artifacts, logs |
| π Network | Dedicated/Load Balanced | High availability |
βοΈ Cloud Environment
| Platform | Instance Type | Specifications |
|---|---|---|
| π©οΈ AWS | t3.large | 2 vCPU, 8GB RAM |
| βοΈ Azure | Standard_B2s | 2 vCPU, 4GB RAM |
| π GCP | n1-standard-2 | 2 vCPU, 7.5GB RAM |
| π DigitalOcean | s-2vcpu-4gb | 2 vCPU, 4GB RAM |
π Troubleshooting Common Issues
β Common Problems & Solutions
| Issue | Symptoms | Solution |
|---|---|---|
| πΎ Low Memory | Slow performance, crashes | Increase RAM or optimize JVM |
| π½ Disk Space | Build failures, errors | Clean workspace, increase storage |
| β Java Issues | Startup failures | Verify Java version compatibility |
| π Network | Connection timeouts | Check firewall, DNS settings |
| π Permissions | Access denied errors | Fix file/directory permissions |
π§ Diagnostic Commands
# Check system resources
free -h # Memory usage
df -h # Disk usage
top # CPU usage
netstat -tulpn # Network ports
# Check Java
java -version # Java version
which java # Java location
echo $JAVA_HOME # Java home directory
# Check Jenkins
systemctl status jenkins # Service status
journalctl -u jenkins # Service logs
π Additional Resources
π Official Documentation
- π Jenkins System Requirements: jenkins.io/doc/administration/requirements
- β Java Requirements: jenkins.io/doc/administration/requirements/java
- π Web Browser Compatibility: jenkins.io/doc/administration/requirements/web-browsers
- π§ Linux Support Policy: jenkins.io/doc/administration/requirements/linux
- πͺ Windows Support Policy: jenkins.io/doc/administration/requirements/windows
π οΈ Tools & Utilities
- π System Monitoring: htop, iotop, nethogs
- π§ Performance Tuning: JVM profilers, system tuning guides
- π‘οΈ Security Tools: fail2ban, SELinux/AppArmor configurations
- π¦ Package Managers: apt, yum/dnf, brew, chocolatey
π System Requirements Verified! Ready for Jenkins Installation! π
Install Jenkins on Linux
π Install Jenkins on Linux
π Overview
π― Complete Guide for Jenkins Installation on RHEL/Rocky/Alma/CentOS and Ubuntu/Debian
This guide covers Jenkins installation on major Linux distributions with proper Java setup and configuration.
π What This Guide Covers
- ποΈ RHEL/Rocky/Alma/CentOS - Enterprise Linux installation
- π§ Ubuntu/Debian - Debian-based distribution setup
- β Java Requirements - Version compatibility and installation
- π₯ Firewall Configuration - Network security setup
- π Service Management - Starting and managing Jenkins
ποΈ Install Jenkins on RHEL/Rocky Linux/AlmaLinux/CentOS
β Java Installation Requirements
π§ Prerequisites: Jenkins requires Java to run, but not all Linux distributions include Java by default.
π Installation Method:
- Install Jenkins through
dnfpackage manager - Add Jenkins repository from official Jenkins website
- Install compatible Java version
π Java Version Compatibility Matrix
β‘ Important: Not all Java versions are compatible with Jenkins. Use this matrix to choose the right version.
| Jenkins Version | Java Versions | Release Type | Release Date |
|---|---|---|---|
| π 2.534 | Java 17, 21, 25 | Weekly | October 2025 |
| π‘οΈ 2.479.1 | Java 17, 21 | LTS | October 2024 |
| π 2.463 | Java 17, 21 | Weekly | June 2024 |
| π‘οΈ 2.426.1 | Java 11, 17, 21 | LTS | November 2023 |
| π 2.419 | Java 11, 17, 21 | Weekly | August 2023 |
| π‘οΈ 2.361.1 | Java 11, 17 | LTS | September 2022 |
| π 2.357 | Java 11, 17 | Weekly | June 2022 |
| π‘οΈ 2.346.1 | Java 8, 11, 17 | LTS | June 2022 |
| π 2.340 | Java 8, 11, 17 | Weekly | March 2022 |
| π‘οΈ 2.164.1 | Java 8, 11 | LTS | March 2019 |
| π 2.164 | Java 8, 11 | Weekly | February 2019 |
| π‘οΈ 2.60.1 | Java 8 | LTS | June 2017 |
| π 2.54 | Java 8 | Weekly | April 2017 |
| π‘οΈ 1.625.1 | Java 7 | LTS | October 2015 |
π‘ Recommendation: Use Java 21 for the latest Jenkins versions for optimal performance and security.
π‘οΈ Long Term Support (LTS) Release - Recommended
π― Stability First: LTS releases are chosen every 12 weeks for production environments.
π¦ Installation Commands:
# Add Jenkins LTS repository
sudo wget -O /etc/yum.repos.d/jenkins.repo \
https://pkg.jenkins.io/redhat-stable/jenkins.repo
# Import Jenkins GPG key
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key
# Update system packages
sudo dnf upgrade -y
# Install Java 21 and required dependencies
sudo dnf install -y fontconfig java-21-openjdk
# Install Jenkins
sudo dnf install -y jenkins
# Reload systemd daemon
sudo systemctl daemon-reload
π Weekly Release - Latest Features
β‘ Cutting Edge: Weekly releases deliver the latest bug fixes and features.
π¦ Installation Commands:
# Add Jenkins weekly repository
sudo wget -O /etc/yum.repos.d/jenkins.repo \
https://pkg.jenkins.io/redhat/jenkins.repo
# Import Jenkins GPG key
sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io-2023.key
# Update system packages
sudo dnf upgrade -y
# Install Java 21 and required dependencies
sudo dnf install -y fontconfig java-21-openjdk
# Install Jenkins
sudo dnf install -y jenkins
π‘ Which to Choose?
- π‘οΈ LTS: Production environments, stability required
- π Weekly: Development, testing, latest features needed
π§ Install Jenkins on Ubuntu/Debian
β Java Installation Requirements
π§ Prerequisites: Jenkins requires Java, but Ubuntu/Debian may not include it by default.
π Java Implementation Options:
| Implementation | Description | Recommendation |
|---|---|---|
| β OpenJDK | Open-source Java | β Recommended |
| π’ Oracle JDK | Commercial Java | Enterprise use |
| π Eclipse Temurin | High-performance | Performance critical |
π Additional Resources:
- π OpenJDK: https://openjdk.org/install/
- π Eclipse Temurin: https://adoptium.net/temurin/releases
π§ Java Installation Process
π¦ Install Java 21 (Recommended):
# Update package repositories
sudo apt update
# Install Java 21 and required dependencies
sudo apt install -y fontconfig openjdk-21-jre
# Verify Java installation
java -version
β Expected Output:
openjdk 21.0.8 2025-07-15
OpenJDK Runtime Environment (build 21.0.8+9-Debian-1)
OpenJDK 64-Bit Server VM (build 21.0.8+9-Debian-1, mixed mode, sharing)
π Success Indicator: If you see similar output, Java is properly installed!
π‘οΈ Long Term Support (LTS) Release - Recommended
π― Production Ready: Stable release updated every 12 weeks, perfect for production environments.
π¦ Installation Commands:
# Download Jenkins GPG key
sudo wget -O /etc/apt/keyrings/jenkins-keyring.asc \
https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key
# Add Jenkins LTS repository
echo "deb [signed-by=/etc/apt/keyrings/jenkins-keyring.asc]" \
https://pkg.jenkins.io/debian-stable binary/ | sudo tee \
/etc/apt/sources.list.d/jenkins.list > /dev/null
# Update package list
sudo apt update
# Install Jenkins
sudo apt install -y jenkins
π Weekly Release - Latest Features
β‘ Bleeding Edge: Weekly updates with latest features and bug fixes.
π¦ Installation Commands:
# Download Jenkins GPG key
sudo wget -O /etc/apt/keyrings/jenkins-keyring.asc \
https://pkg.jenkins.io/debian/jenkins.io-2023.key
# Add Jenkins weekly repository
echo "deb [signed-by=/etc/apt/keyrings/jenkins-keyring.asc]" \
https://pkg.jenkins.io/debian binary/ | sudo tee \
/etc/apt/sources.list.d/jenkins.list > /dev/null
# Update package list
sudo apt update
# Install Jenkins
sudo apt install -y jenkins
π€ Decision Guide:
- π‘οΈ Choose LTS for: Production servers, critical applications, stability requirements
- π Choose Weekly for: Development environments, testing, need latest features
π Start and Configure Jenkins Service
β‘ Jenkins Service Management
π§ Service Control: Manage Jenkins using systemd commands for reliable operation.
π Essential Service Commands:
# Enable Jenkins to start automatically at boot
sudo systemctl enable jenkins
# Start Jenkins service
sudo systemctl start jenkins
# Check Jenkins service status
sudo systemctl status jenkins
β Expected Status Output:
β jenkins.service - Jenkins Continuous Integration Server
Loaded: loaded (/lib/systemd/system/jenkins.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2018-11-13 16:19:01 +03; 4min 57s ago
π Success Indicators:
- β Loaded: Service file found and loaded
- β Active (running): Jenkins is running successfully
- β Enabled: Will start automatically on boot
π₯ Firewall Configuration
π‘οΈ Security Setup: Configure firewall to allow Jenkins access while maintaining security.
π Default Jenkins Port: 8080
π¦ Firewall Configuration Commands:
# Set Jenkins port (change if needed)
YOURPORT=8080
PERM="--permanent"
SERV="$PERM --service=jenkins"
# Create Jenkins firewall service
sudo firewall-cmd $PERM --new-service=jenkins
sudo firewall-cmd $SERV --set-short="Jenkins ports"
sudo firewall-cmd $SERV --set-description="Jenkins port exceptions"
sudo firewall-cmd $SERV --add-port=$YOURPORT/tcp
sudo firewall-cmd $PERM --add-service=jenkins
# Add HTTP service and reload
sudo firewall-cmd --zone=public --add-service=http --permanent
sudo firewall-cmd --reload
π§ Alternative Simple Firewall Setup:
# Quick firewall setup for Jenkins
sudo firewall-cmd --permanent --add-port=8080/tcp
sudo firewall-cmd --reload
# Verify firewall rules
sudo firewall-cmd --list-all
β οΈ Security Note: Only open necessary ports. Consider using a reverse proxy for production environments.
π― Post-Installation Setup Wizard
π Initial Configuration: Complete the one-time setup process to get Jenkins ready for use.
π Setup Process Overview:
- π Unlock Jenkins with auto-generated password
- π Install Plugins (recommended or custom selection)
- π€ Create Admin User for ongoing access
- π Configure Instance settings
π Unlocking Jenkins
π Security First: Jenkins generates a unique password for initial access.
Step 1: Access Jenkins Web Interface
π Open your browser and navigate to:
http://localhost:8080
```text
> π‘ **Custom Port**: Replace `8080` with your configured port if different.
#### Step 2: Unlock Jenkins Page

> π― **What you'll see**: The "Unlock Jenkins" page requesting the administrator password.
#### Step 3: Retrieve the Initial Password
**π» Method 1: Command Line (Recommended)**
```bash
# Display the initial admin password
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
π³ Method 2: Docker Container
# For Docker installations
sudo docker exec ${CONTAINER_ID} cat /var/jenkins_home/secrets/initialAdminPassword
π Method 3: Jenkins Console Log
- Look for the password between two sets of asterisks (
****) - Copy the alphanumeric password from the console output
Step 4: Complete Unlock Process
π Unlock Steps:
- Copy the automatically generated password
- Paste it into the "Administrator password" field
- Click "Continue" to proceed
π‘οΈ Security Notes:
- This password is auto-generated for security
- Located in Jenkins home directory:
/var/lib/jenkins/secrets/- Serves as default admin password (username: "admin")
- Required for all new Jenkins installations
π Next Steps
After unlocking Jenkins, you'll proceed to:
- π Plugin Installation - Choose recommended or custom plugins
- π€ Admin User Creation - Set up your administrator account
- βοΈ Instance Configuration - Configure Jenkins URL and settings
β Installation Complete!
π Congratulations! You've successfully installed Jenkins on Linux.
π― What You've Accomplished:
- β Java Installation - Compatible Java version installed
- β Jenkins Installation - Jenkins service installed and configured
- β Service Management - Jenkins enabled and running
- β Firewall Configuration - Network access properly configured
- β Initial Setup - Ready for the setup wizard
π Quick Access:
- π Jenkins URL:
http://localhost:8080 - π Jenkins Home:
/var/lib/jenkins/ - π Initial Password:
/var/lib/jenkins/secrets/initialAdminPassword
π Navigation
π Current Location: Linux Installation (You are here)
β¬
οΈ Previous: Hardware & Software Prerequisites
β‘οΈ Next Step: Final Configuration
πΊοΈ Full Path: Introduction β Options β Environment β Prerequisites β Linux Installation β Configuration
π Ready to Build! Jenkins Installation Complete! π
Install Jenkins on Windows
πͺ Install Jenkins on Windows
π Overview
π― Complete Guide for Jenkins Installation on Windows
This comprehensive guide covers Jenkins installation on Windows using the official installer with step-by-step instructions and security best practices.
π What This Guide Covers
- π₯ Windows Installer - Official MSI installation package
- π Security Configuration - Service account and permissions
- π οΈ Step-by-Step Setup - Detailed installation process
- π» Silent Installation - Automated deployment options
- π― Post-Installation - Initial configuration and access
π₯ Jenkins Windows Installer Overview
π Simplest Method: The Jenkins Windows installer is the easiest way to get Jenkins running on Windows.
π§ Key Features:
- Automated Installation: Uses 64-bit JVM of your choice
- Windows Service: Installs Jenkins as a Windows service
- Security: Requires proper service login permissions
- User-Friendly: GUI-based installation wizard
π Prerequisites
β οΈ Important Requirements:
- π₯οΈ Windows OS: Windows 10/11 or Windows Server
- β Java: JDK 11, 17, or 21 (will be detected automatically)
- π Permissions: Account must have "Log on as a service" permission
- πΎ Storage: Minimum 1GB free space (recommended 10GB+)
π Download Jenkins
π₯ Official Download Page: https://www.jenkins.io/download/#downloading-jenkins
π¦ Available Options:
- π‘οΈ LTS Release - Stable, recommended for production
- π Weekly Release - Latest features and bug fixes
π‘ Recommendation: Choose LTS release for production environments and weekly release for development/testing.
π οΈ Jenkins Installation Process
Step 1: Launch Setup Wizard

π Getting Started: When you open the Windows Installer, the Installation Setup Wizard appears.
π Initial Setup:
- Double-click the downloaded Jenkins installer (.msi file)
- Click "Next" on the Setup Wizard to start the installation
- Follow the guided installation process
Step 2: Select Destination Folder

π Installation Location: Choose where Jenkins will be installed on your system.
π― Folder Selection Guidelines:
| Location Type | Path Example | Recommendation |
|---|---|---|
| π Default | C:\Program Files\Jenkins | β Recommended for most users |
| πΎ Custom Drive | D:\Jenkins | Good for systems with multiple drives |
| π Secure Location | C:\Apps\Jenkins | Alternative for restricted environments |
π Selection Process:
- Review the default installation path
- Change if needed by clicking "Browse"
- Ensure sufficient disk space (minimum 1GB, recommended 10GB+)
- Click "Next" to continue
Step 3: Service Logon Credentials
π Security Best Practice: Run Jenkins as an independent Windows service using a dedicated user account.
β οΈ Security Considerations:
| Account Type | Security Level | Recommendation |
|---|---|---|
| π« LocalSystem | β High Risk | Full system access - NOT recommended |
| π€ Local User | β Secure | Limited permissions - Recommended |
| π’ Domain User | β Enterprise | Centralized management - Best for organizations |
π‘οΈ Configure "Log on as a Service" Permission

π Prerequisites Setup: Before configuring Jenkins service credentials, you must grant "Log on as a service" permission to your user account.
Step 3a: Open Local Security Policy

π§ Access Methods:
- Method 1: Press
Win + R, typesecpol.msc, press Enter - Method 2: Open Administrative Tools β Local Security Policy
- Login with administrative privileges
π‘ Windows 10 Home Users: If Local Security Policy is missing, refer to Microsoft Community for GPEdit.msc download instructions.
Step 3b: Navigate to User Rights Assignment

π Navigation Path:
- Expand "Local Policies" in the left panel
- Click on "User Rights Assignment"
- Locate "Log on as a service" in the right panel
Step 3c: Add User to Service Logon

π€ User Addition Process:
- Right-click "Log on as a service"
- Select "Properties" from context menu
- Click "Add User or Group..." button
Step 3d: Select User Account




π User Selection Steps:
- Type the username in the "Enter the object names to select" field
- Click "Check Names" to validate
- Click "OK" to confirm selection
- Click "OK" in the Properties dialog to save changes
Step 3e: Configure Jenkins Service Account

π Service Configuration:
- Enter the domain/local username
- Enter the user password
- Click "Test Credentials" to verify
- Ensure green checkmark appears
- Click "Next" to continue
π‘οΈ Security Tip: Use a dedicated service account with minimal required permissions for enhanced security.
Step 4: Port Selection

π Network Configuration: Specify the port on which Jenkins will run.
π Port Configuration Process:
- Enter desired port number (default: 8080)
- Click "Test Port" button to validate availability
- Verify port is free on your machine

β Port Validation Results:
- Green Checkmark: Port is available and ready to use
- Red X: Port is in use, choose a different port
- Click "Next" to continue once validation passes
π― Common Port Options:
| Port | Usage | Recommendation |
|---|---|---|
| 8080 | Default Jenkins | β Recommended for most setups |
| 8081 | Alternative | Good if 8080 is occupied |
| 9090 | Custom | Enterprise environments |
Step 5: Select Java Home Directory

β Java Configuration: Jenkins installation process automatically detects Java on your system.
π Java Setup Process:
- Review the auto-detected Java home directory
- Verify Java version compatibility
- Install Java if prompted (if not already installed)

β Java Requirements:
| Java Version | Jenkins Compatibility | Status |
|---|---|---|
| Java 21 | β Recommended | Latest LTS |
| Java 17 | β Supported | Previous LTS |
| Java 11 | β οΈ Legacy | Older versions only |
π Configuration Steps:
- Confirm Java home directory path
- Change if needed (advanced users)
- Click "Next" to continue
Step 6: Custom Setup

π§ Additional Services: Select optional components to install with Jenkins.
π¦ Available Components:
| Component | Description | Recommendation |
|---|---|---|
| π Jenkins Plugins | Essential plugins | β Recommended |
| π Monitoring Tools | Performance monitoring | Optional |
| π Security Extensions | Enhanced security | β Recommended |
π Selection Process:
- Review available components
- Select desired additional services
- Click "Next" to proceed
Step 7: Install Jenkins

π Installation Execution: Begin the actual Jenkins installation process.
β³ Installation Process:
- Click "Install" button to start installation
- Wait for installation to complete (typically 2-5 minutes)
- Monitor progress bar for completion status
π What Happens During Installation:
- β Files Copied: Jenkins files copied to destination
- β Service Created: Windows service configured
- β Registry Updated: Windows registry entries added
- β Shortcuts Created: Desktop and Start Menu shortcuts
Step 8: Finish Jenkins Installation

π Installation Complete: Jenkins has been successfully installed on your Windows system.
β Installation Summary:
- β Jenkins Installed: Successfully installed as Windows service
- β Service Configured: Running with specified user account
- β Port Configured: Listening on specified port
- β Java Configured: Using detected/selected Java installation
π Completion Steps:
- Click "Finish" to complete the setup
- Optionally start Jenkins service immediately
- Access Jenkins web interface
π Verify Installation

π οΈ Service Verification: Confirm Jenkins is running as a Windows service.
π Verification Steps:
- Open Services (services.msc)
- Locate "Jenkins" service
- Verify status is "Running"
- Check startup type is "Automatic"
π§ Alternative Installation Methods
π» Silent Installation with MSI
π€ Automated Installation: Install Jenkins without user interaction using command line.
Basic Silent Installation
π¦ Simple Command:
msiexec.exe /i "path\to\jenkins.msi" /qn /norestart
π― Default Settings Used:
- Installation Directory:
C:\Program Files\Jenkins - Service Account: LocalSystem
- Port: 8080
- Java: Latest detected version
Advanced Silent Installation
π§ Custom Configuration:
msiexec.exe /i "path\to\jenkins.msi" /qn /norestart ^
INSTALLDIR="D:\Jenkins" ^
JAVA_HOME="C:\Program Files\Java\jdk-21" ^
PORT=80 ^
SERVICE_USERNAME="DOMAIN\jenkins" ^
SERVICE_PASSWORD="SecurePassword123" ^
/L*v "C:\temp\jenkins-install.log"
π Available Properties:
| Property | Description | Default Value |
|---|---|---|
INSTALLDIR | Installation directory | C:\Program Files\Jenkins |
PORT | Jenkins listening port | 8080 |
JAVA_HOME | Java installation path | Auto-detected |
SERVICE_USERNAME | Service account username | LOCALSYSTEM |
SERVICE_PASSWORD | Service account password | None (for LOCALSYSTEM) |
π‘ Silent Installation Benefits:
- β Automation: Perfect for deployment scripts
- β Consistency: Same configuration across multiple machines
- β Logging: Detailed installation logs available
- β Unattended: No user interaction required
π― Post-Installation Setup Wizard
π Initial Configuration: Complete the one-time setup process to get Jenkins ready for use.
π Unlocking Jenkins
Step 1: Access Jenkins Web Interface
π Open your browser and navigate to:
http://localhost:8080
```text
> π‘ **Custom Port**: Replace `8080` with your configured port if different.
#### Step 2: Unlock Jenkins Page

> π― **What you'll see**: The "Unlock Jenkins" page requesting the administrator password.
#### Step 3: Locate Initial Password

> π **Important**: The password location varies depending on how Jenkins was installed and the user account used.
**π Common Password Locations:**
| Installation Type | Password Path | When Used |
|-------------------|---------------|-----------|
| π **User Installation** | `C:\Users\[username]\AppData\Local\Jenkins\.jenkins\secrets\initialAdminPassword` | Most common for user-based installs |
| π’ **System Installation** | `C:\Program Files\Jenkins\secrets\initialAdminPassword` | System-wide installation |
| πΎ **Custom Path** | `[Custom Path]\.jenkins\secrets\initialAdminPassword` | Custom installation directory |
**π How to Find Your Password Location:**
1. **Check the Jenkins unlock screen** - The exact path is displayed on the unlock page
2. **Look for the red text** showing the file path (as shown in the screenshot)
3. **Copy the exact path** from the Jenkins web interface
**π Password Retrieval Steps:**
**Method 1: From Jenkins Web Interface (Recommended)**
1. **Look at the Jenkins unlock screen** - The exact file path is displayed in red text
2. **Copy the path** shown on the screen (e.g., `C:\Users\[username]\AppData\Local\Jenkins\.jenkins\secrets\initialAdminPassword`)
**Method 2: Manual File Access**
1. **Open File Explorer** and navigate to the path shown on Jenkins unlock screen
2. **Enable hidden folders** (View β Hidden items) if accessing AppData folder
3. **Navigate** to the secrets directory
4. **Open** `initialAdminPassword` file with Notepad
5. **Copy** the entire password content (it's a long alphanumeric string)
6. **Paste** into Jenkins unlock page
**Method 3: Command Line**
```cmd
# Replace [path] with the actual path from Jenkins unlock screen
type "C:\Users\[username]\AppData\Local\Jenkins\.jenkins\secrets\initialAdminPassword"
π‘ Pro Tip: The exact path is always displayed on the Jenkins unlock screen, so you don't need to guess the location!
π Unlock Steps:
- Paste the password into the "Administrator password" field
- Click "Continue" to proceed
- Wait for Jenkins to initialize
π‘οΈ Security Notes:
- Password is auto-generated for security
- Located in Jenkins installation directory
- Required for initial access only
- Can also be found in
jenkins.err.logfile
π Next Steps
After unlocking Jenkins, you'll proceed to:
- π Plugin Installation - Choose recommended or custom plugins
- π€ Admin User Creation - Set up your administrator account
- βοΈ Instance Configuration - Configure Jenkins URL and settings
β Installation Complete!
π Congratulations! You've successfully installed Jenkins on Windows.
π― What You've Accomplished:
- β Jenkins Installed - Successfully installed as Windows service
- β Security Configured - Service running with dedicated user account
- β Network Setup - Port configured and tested
- β Java Integration - Java runtime properly configured
- β Initial Setup - Ready for the setup wizard
π Quick Access:
- π Jenkins URL:
http://localhost:8080(or your custom port) - π Installation Directory:
C:\Program Files\Jenkins(or custom path) - π Initial Password: Check Jenkins unlock screen for exact path (commonly
C:\Users\[username]\AppData\Local\Jenkins\.jenkins\secrets\initialAdminPassword) - π οΈ Windows Service: Available in Services (services.msc)
π― Useful Commands:
# Start Jenkins service
net start jenkins
# Stop Jenkins service
net stop jenkins
# Restart Jenkins service
net stop jenkins && net start jenkins
π Navigation
π Current Location: Windows Installation (You are here)
β¬
οΈ Previous: Hardware & Software Prerequisites
β‘οΈ Next Step: Final Configuration
πΊοΈ Full Path: Introduction β Options β Environment β Prerequisites β Windows Installation β Configuration
π Ready to Build! Jenkins Installation Complete on Windows! π
Install Jenkins Using WAR file
π¦ Install Jenkins Using WAR File
π Overview
π― Universal Jenkins Deployment Method
The WAR file provides a platform-independent way to run Jenkins using just Java, perfect for quick testing and custom deployments.
π What This Guide Covers
- π¦ WAR File Deployment - Universal Java-based installation
- βοΈ Configuration Options - Custom ports and directories
- π§ Prerequisites - System requirements and compatibility
- π Quick Start - Fastest path to Jenkins
- π Initial Setup - Post-installation configuration
π Prerequisites
Before installing Jenkins using the WAR file, ensure you have the following requirements:
π§ Software Requirements
| Component | Requirement |
|---|---|
| β Java | See the Java Requirements page |
| π Web Browser | See the Web Browser Compatibility page |
| πͺ Windows OS | See Windows Support Policy |
| π§ Linux OS | See Linux Support Policy |
| ποΈ Servlet Containers | See Servlet Container Support Policy |
π Running the WAR File
The Jenkins Web Application Archive (WAR) file provides a simple way to run Jenkins without complex installation procedures.
π₯ Step-by-Step Installation
-
π Download Jenkins WAR
- Download the latest Jenkins WAR file to an appropriate directory on your machine
-
π» Open Terminal/Command Prompt
- Navigate to the download directory
-
βΆοΈ Execute Jenkins
bashjava -jar jenkins.war
4. **π Access Jenkins**
- Browse to `http://localhost:8080`
- Wait until the **Unlock Jenkins** page appears
5. **π§ Continue Setup**
- Proceed with the Post-installation setup wizard
---
## βοΈ Configuration Options
<div align="center">



</div>
### π Custom Port Configuration
To run Jenkins on a different port (e.g., port 9090):
```bash
java -jar jenkins.war --httpPort=9090
π Custom Jenkins Home Directory
You can specify a custom directory for Jenkins configuration files using the JENKINS_HOME environment variable:
πͺ Windows
C:\Temp > set JENKINS_HOME=my-jenkins-config
C:\Temp > java -jar jenkins.war
π§ Unix/Linux
JENKINS_HOME=my-jenkins-config java -jar jenkins.war
β οΈ Important Notes
π Plugin Installation: This process does not automatically install plugins. Install them separately via Manage Jenkins > Plugins page.
π Home Directory: The
JENKINS_HOMEenvironment variable determines where Jenkins stores its configuration files.
π― Post-Installation Setup Wizard
After successfully running Jenkins, the post-installation setup wizard will guide you through the initial configuration process.
π Unlocking Jenkins
When you first access Jenkins, you'll need to unlock it using an automatically-generated password.
π Unlock Process
-
π Access Jenkins
- Browse to
http://localhost:8080(or your configured port) - Wait for the Unlock Jenkins page to appear
- Browse to
-
π Retrieve Initial Password
The initial admin password can be found in several ways:
π From Console Log:
- Copy the alphanumeric password from the Jenkins console output (between the asterisks)
π» Command Line Methods:
bash# Standard Jenkins installation sudo cat /var/lib/jenkins/secrets/initialAdminPassword
```bash
# Docker installation
sudo docker exec ${CONTAINER_ID} cat /var/jenkins_home/secrets/initialAdminPassword
- β
Complete Unlock
- Paste the password into the Administrator password field
- Click Continue
οΏ½ Important Security Notes
π Default Admin Account: The initial password serves as the default administrator account password (username: "admin") if you skip the user creation step.
οΏ½ pPassword Location: The Jenkins console log shows the exact location of the password file in your Jenkins home directory.
οΏ½οΈ Firstn-Time Setup: This password must be entered before accessing Jenkins's main UI on new installations.
π Next Steps
After unlocking Jenkins, you can:
- π Install recommended plugins
- π€ Create your first admin user
- ποΈ Start building your first project
π Navigation
π Current Location: WAR File Installation (You are here)
β¬
οΈ Previous: Hardware & Software Prerequisites
β‘οΈ Next Step: Final Configuration
πΊοΈ Full Path: Introduction β Options β Environment β Prerequisites β WAR Installation β Configuration
π Congratulations! Jenkins is now ready to use! π
Install Jenkins on Docker
π³ Install Jenkins on Docker
π Overview
π― Complete Guide for Jenkins Installation using Docker
This guide covers Jenkins installation using Docker containers with Blue Ocean plugins and Docker-in-Docker capabilities for maximum flexibility.
π What This Guide Covers
- π Quick Start - Simple Jenkins container setup
- π Blue Ocean - Modern Jenkins UI with advanced features
- π³ Docker-in-Docker - Build Docker images within Jenkins
- π§ Container Management - Managing Jenkins containers
- π‘ Best Practices - Production-ready Docker deployment
π Prerequisites
Before installing Jenkins using Docker, ensure you have the following requirements:
π§ System Requirements
| Component | Requirement | Description |
|---|---|---|
| π³ Docker | Latest version | Docker Installation Guide |
| πΎ RAM | 4GB+ | Recommended for optimal performance |
| π½ Storage | 10GB+ | For Jenkins data and Docker images |
| π Network | Internet access | For downloading Docker images |
π Quick Start Installation
β‘ Simple Jenkins Setup
For a quick Jenkins installation without Docker-in-Docker capabilities:
# Create Jenkins home directory
mkdir ~/jenkins_home
# Run Jenkins container
docker run -d \
--name jenkins-simple \
-p 8080:8080 \
-p 50000:50000 \
-v jenkins_home:/var/jenkins_home \
jenkins/jenkins:lts
π Access Jenkins:
http://localhost:8080
π‘ Note: This simple setup is perfect for basic Jenkins usage but doesn't include Docker CLI or Blue Ocean plugins.
π οΈ Advanced Installation with Blue Ocean
π Full-Featured Jenkins with Docker Support
For production-ready Jenkins with Blue Ocean and Docker-in-Docker capabilities:
π Installation Overview
| Feature | Simple Setup | Advanced Setup |
|---|---|---|
| π§ Basic Jenkins | β | β |
| π Blue Ocean UI | β | β |
| π³ Docker CLI | β | β |
| π Docker-in-Docker | β | β |
| π Production Ready | β οΈ | β |
π§ Installation on macOS and Linux
Step 1: Create Docker Network
# Create a bridge network for Jenkins containers
docker network create jenkins
Step 2: Run Docker-in-Docker Container
# Run Docker daemon container
docker run \
--name jenkins-docker \
--rm \
--detach \
--privileged \
--network jenkins \
--network-alias docker \
--env DOCKER_TLS_CERTDIR=/certs \
--volume jenkins-docker-certs:/certs/client \
--volume jenkins-data:/var/jenkins_home \
--publish 2376:2376 \
docker:dind \
--storage-driver overlay2
π Command Explanation:
| Parameter | Purpose | Description |
|---|---|---|
--name jenkins-docker | π·οΈ Container Name | Identifies the Docker-in-Docker container |
--rm | ποΈ Auto-cleanup | Removes container when stopped |
--detach | π Background | Runs container in background |
--privileged | π Permissions | Required for Docker-in-Docker |
--network jenkins | π Network | Connects to Jenkins network |
--network-alias docker | π Alias | Makes container accessible as 'docker' |
--env DOCKER_TLS_CERTDIR | π‘οΈ Security | Enables TLS for Docker daemon |
--volume jenkins-docker-certs | π Certificates | Stores Docker TLS certificates |
--volume jenkins-data | πΎ Data | Persistent Jenkins data storage |
--publish 2376:2376 | π Port | Exposes Docker daemon port |
Step 3: Create Custom Jenkins Image
π Create Dockerfile
FROM jenkins/jenkins:2.528.3-jdk21
USER root
# Install Docker CLI and dependencies
RUN apt-get update && apt-get install -y lsb-release ca-certificates curl && \
install -m 0755 -d /etc/apt/keyrings && \
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc && \
chmod a+r /etc/apt/keyrings/docker.asc && \
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] \
https://download.docker.com/linux/debian $(. /etc/os-release && echo \"$VERSION_CODENAME\") stable" \
| tee /etc/apt/sources.list.d/docker.list > /dev/null && \
apt-get update && apt-get install -y docker-ce-cli && \
apt-get clean && rm -rf /var/lib/apt/lists/*
USER jenkins
# Install Jenkins plugins
RUN jenkins-plugin-cli --plugins "blueocean docker-workflow json-path-api"
π¨ Build Custom Image
# Build Jenkins image with Blue Ocean and Docker CLI
docker build -t myjenkins-blueocean:2.528.3-1 .
Step 4: Run Jenkins Container
# Run Jenkins with Blue Ocean and Docker support
docker run \
--name jenkins-blueocean \
--restart=on-failure \
--detach \
--network jenkins \
--env DOCKER_HOST=tcp://docker:2376 \
--env DOCKER_CERT_PATH=/certs/client \
--env DOCKER_TLS_VERIFY=1 \
--publish 8080:8080 \
--publish 50000:50000 \
--volume jenkins-data:/var/jenkins_home \
--volume jenkins-docker-certs:/certs/client:ro \
myjenkins-blueocean:2.528.3-1
π Command Parameters:
| Parameter | Purpose | Description |
|---|---|---|
--name jenkins-blueocean | π·οΈ Container Name | Identifies Jenkins container |
--restart=on-failure | π Auto-restart | Restarts on failure |
--detach | π Background | Runs in background |
--network jenkins | π Network | Connects to Jenkins network |
--env DOCKER_HOST | π³ Docker Connection | Points to Docker daemon |
--env DOCKER_CERT_PATH | π‘οΈ Certificates | TLS certificate path |
--env DOCKER_TLS_VERIFY | π Security | Enables TLS verification |
--publish 8080:8080 | π Web UI Port | Jenkins web interface |
--publish 50000:50000 | π Agent Port | Jenkins agent communication |
--volume jenkins-data | πΎ Data Storage | Persistent Jenkins data |
--volume jenkins-docker-certs | π Certificates | Docker TLS certificates |
πͺ Installation on Windows
β οΈ Important: Ensure Docker Desktop is configured to run Linux Containers, not Windows Containers.
Step 1: Create Docker Network
docker network create jenkins
Step 2: Run Docker-in-Docker Container
docker run --name jenkins-docker --rm --detach ^
--privileged --network jenkins --network-alias docker ^
--env DOCKER_TLS_CERTDIR=/certs ^
--volume jenkins-docker-certs:/certs/client ^
--volume jenkins-data:/var/jenkins_home ^
--publish 2376:2376 ^
docker:dind
Step 3: Create Dockerfile (Windows Version)
FROM jenkins/jenkins:2.528.3-jdk21
USER root
# Install Docker CLI (Windows-compatible version)
RUN apt-get update && apt-get install -y lsb-release
RUN curl -fsSLo /usr/share/keyrings/docker-archive-keyring.asc \
https://download.docker.com/linux/debian/gpg
RUN echo "deb [arch=$(dpkg --print-architecture) \
signed-by=/usr/share/keyrings/docker-archive-keyring.asc] \
https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list
RUN apt-get update && apt-get install -y docker-ce-cli
USER jenkins
# Install Jenkins plugins
RUN jenkins-plugin-cli --plugins "blueocean docker-workflow json-path-api"
Step 4: Build and Run
# Build custom image
docker build -t myjenkins-blueocean:2.528.3-1 .
# Run Jenkins container
docker run --name jenkins-blueocean --restart=on-failure --detach ^
--network jenkins --env DOCKER_HOST=tcp://docker:2376 ^
--env DOCKER_CERT_PATH=/certs/client --env DOCKER_TLS_VERIFY=1 ^
--volume jenkins-data:/var/jenkins_home ^
--volume jenkins-docker-certs:/certs/client:ro ^
--publish 8080:8080 --publish 50000:50000 myjenkins-blueocean:2.528.3-1
π§ Container Management
π Accessing Docker Container
π₯οΈ Interactive Shell Access
# Access Jenkins container shell
docker exec -it jenkins-blueocean bash
π Container Information
# List running containers
docker ps
# View container logs
docker logs jenkins-blueocean
# Follow logs in real-time
docker logs -f jenkins-blueocean
π Accessing Jenkins Home Directory
πΎ Volume-based Storage
# Access Jenkins home via container
docker container exec -it jenkins-blueocean bash
# Navigate to Jenkins home
cd /var/jenkins_home
ποΈ Local File System Mapping
If you mapped Jenkins home to local directory:
# Example: Mapped to local directory
docker run -v $HOME/jenkins:/var/jenkins_home ...
# Access via local file system
cd $HOME/jenkins
π― Post-Installation Setup Wizard
π Unlocking Jenkins
Step 1: Access Jenkins Web Interface
π Open your browser and navigate to:
http://localhost:8080
Step 2: Retrieve Initial Password
π Method 1: Docker Logs (Recommended)
# View Jenkins logs to find password
docker logs jenkins-blueocean
π Method 2: Container Exec
# Access password file directly
docker exec jenkins-blueocean cat /var/jenkins_home/secrets/initialAdminPassword
π Method 3: Interactive Shell
# Access container and view password
docker exec -it jenkins-blueocean bash
cat /var/jenkins_home/secrets/initialAdminPassword
Step 3: Complete Setup
- π Copy the initial admin password
- π Paste into Jenkins unlock page
- βΆοΈ Click "Continue" to proceed
- π Install recommended plugins or select custom plugins
- π€ Create your first admin user
π€ Why Choose Docker for Jenkins?
β Advantages of Docker Installation
| Benefit | Description | Impact |
|---|---|---|
| π Quick Setup | Minimal installation steps | Faster deployment |
| π Consistency | Same environment everywhere | Reduced configuration issues |
| π¦ Isolation | Containerized environment | Better security and stability |
| π§ Easy Updates | Simple container replacement | Simplified maintenance |
| πΎ Portability | Run anywhere Docker runs | Maximum flexibility |
| ποΈ Clean Removal | Complete cleanup possible | No system residue |
π― Use Cases
π§ͺ Development & Testing
- β Quick Jenkins instances for testing
- β Isolated environments for experiments
- β Easy reset and restart capabilities
π’ Production Environments
- β Scalable container orchestration
- β Consistent deployment across environments
- β Easy backup and disaster recovery
π Learning & Training
- β Risk-free experimentation
- β Quick setup for workshops
- β Easy cleanup after training
π οΈ Troubleshooting
β Common Issues
π³ Docker Permission Issues
# Add user to docker group (Linux)
sudo usermod -aG docker $USER
# Restart session or run
newgrp docker
π Port Conflicts
# Check port usage
netstat -tulpn | grep :8080
# Use different port
docker run -p 9090:8080 ...
πΎ Volume Permission Issues
# Fix volume permissions
docker exec -it jenkins-blueocean chown -R jenkins:jenkins /var/jenkins_home
π Useful Commands
# Stop Jenkins container
docker stop jenkins-blueocean
# Start Jenkins container
docker start jenkins-blueocean
# Remove Jenkins container
docker rm jenkins-blueocean
# Remove Jenkins volumes
docker volume rm jenkins-data jenkins-docker-certs
# Clean up everything
docker system prune -a
π Next Steps
After successful installation, you can:
- π Explore Blue Ocean - Modern Jenkins UI
- π Install Additional Plugins - Extend Jenkins functionality
- ποΈ Create Your First Pipeline - Start building projects
- π³ Use Docker in Builds - Leverage containerized build environments
- π Set Up Monitoring - Monitor Jenkins performance
π Navigation
π Current Location: Docker Installation (You are here)
β¬
οΈ Previous: Course Environment Options
β‘οΈ Next Step: Final Configuration
πΊοΈ Full Path: Introduction β Options β Docker Installation β Configuration
π Additional Resources
- π Official Jenkins Docker Hub: jenkins/jenkins
- π Jenkins Documentation: jenkins.io/doc
- π Blue Ocean Documentation: jenkins.io/projects/blueocean
- π³ Docker Documentation: docs.docker.com
π Congratulations! Jenkins with Docker is now ready to use! π
Finish Installation Process
π Jenkins Installation Process - Final Setup
π Overview
π― Objective: Complete the Jenkins post-installation setup wizard to configure your Jenkins instance for first use.
π§ What You'll Accomplish
- β Unlock Jenkins with initial admin password
- β Install essential plugins
- β Create first admin user account
- β Configure Jenkins instance URL
- β Access Jenkins dashboard
π Post-Installation Setup Wizard
π Step 1: Access Jenkins Web Interface
π Navigate to Jenkins:
http://localhost:8080
π‘ Note: Replace
8080with your configured port if different.
π Step 2: Unlock Jenkins

π― What you'll see: The "Unlock Jenkins" page requesting the administrator password.
π Locate Initial Admin Password

Password Location: The path varies by installation method and operating system:
- Linux:
/var/lib/jenkins/secrets/initialAdminPassword- Windows:
C:\Users\{username}\.jenkins\secrets\initialAdminPassword- Docker: Check container logs or mounted volume

π Step 3: Customize Jenkins Plugins

Plugin Installation Options:
| Option | Description | Recommendation |
|---|---|---|
| π― Install suggested plugins | Installs essential plugins automatically | β Recommended for beginners |
| π§ Select plugins to install | Manual plugin selection | For advanced users |
π‘ Tip: Choose "Install suggested plugins" for a complete setup with commonly used plugins.

π€ Step 4: Create First Admin User

π Required Information:
| Field | Description | Example |
|---|---|---|
| Username | Admin login name | admin or jenkins-admin |
| Password | Strong password | Use special characters & numbers |
| Full Name | Display name | Jenkins Administrator |
| Contact email | [email protected] |

π Security Best Practice: Use a strong password with at least 12 characters including uppercase, lowercase, numbers, and special characters.
π Step 5: Instance Configuration

π§ URL Configuration Options:
| Setup Type | URL Format | Example |
|---|---|---|
| Local Development | http://localhost:8080 | Default setup |
| Internal Network | http://server-ip:8080 | http://192.168.1.100:8080 |
| Domain Name | http://jenkins.company.com | With DNS setup |
| HTTPS | https://jenkins.company.com | Production recommended |
π‘ Recommendation: Use HTTPS in production environments for security.
π Step 6: Setup Complete!

π Congratulations! Jenkins is now ready for use.
π Click "Start using Jenkins" to access your dashboard.

π― Next Steps
After completing the setup wizard, consider these next actions:
- π§ Configure System Settings: Set up global tools and configurations
- π₯ Manage Users: Add additional users and configure permissions
- π Install Additional Plugins: Based on your project requirements
- π Create Your First Job: Start building your CI/CD pipeline
- π Security Configuration: Enable additional security measures
π Troubleshooting
Common Issues:
| Issue | Solution |
|---|---|
| Can't access Jenkins | Check if service is running and port is open |
| Password file not found | Verify installation path and user permissions |
| Plugin installation fails | Check internet connection and proxy settings |
| Admin user creation fails | Ensure all required fields are filled correctly |
π Jenkins Installation Process Complete! π