0
0
JenkinsHow-ToBeginner · 4 min read

How to Install Jenkins on Windows: Step-by-Step Guide

To install Jenkins on Windows, download the Windows installer from the official Jenkins website, run the installer, and follow the setup wizard. After installation, Jenkins runs as a Windows service accessible via http://localhost:8080.
📐

Syntax

The installation process uses a Windows installer executable file. The main steps are:

  • Download: Get the jenkins.msi installer from the official Jenkins site.
  • Run Installer: Launch the jenkins.msi file to start the setup wizard.
  • Setup Wizard: Follow prompts to install Jenkins as a Windows service.
  • Access Jenkins: Open a browser and go to http://localhost:8080 to use Jenkins.
bash
Download URL: https://www.jenkins.io/download/

Run installer:
msiexec /i jenkins.msi /quiet

Access Jenkins:
Open browser at http://localhost:8080
💻

Example

This example shows how to install Jenkins silently using the command line and then access it via browser.

batch
msiexec /i jenkins.msi /quiet

REM After installation, open browser and navigate to:
start http://localhost:8080
Output
Windows Installer completed successfully. Jenkins service started. Browser opened at http://localhost:8080
⚠️

Common Pitfalls

  • Port Conflict: Jenkins uses port 8080 by default; if another app uses it, Jenkins won't start.
  • Firewall Blocking: Windows Firewall may block Jenkins; allow Jenkins through firewall.
  • Java Not Installed: Jenkins requires Java; ensure Java is installed and JAVA_HOME is set.
  • Running Installer Without Admin Rights: Installer needs admin rights to install service.
batch
REM Wrong: Running installer without admin rights
msiexec /i jenkins.msi

REM Right: Run installer as administrator
Run Command Prompt as Administrator
msiexec /i jenkins.msi
📊

Quick Reference

Summary tips for installing Jenkins on Windows:

  • Download the latest jenkins.msi from the official site.
  • Run the installer as Administrator.
  • Ensure Java is installed and environment variables are set.
  • Allow Jenkins through Windows Firewall.
  • Access Jenkins at http://localhost:8080 after installation.

Key Takeaways

Download the official Jenkins Windows installer and run it as Administrator.
Ensure Java is installed and JAVA_HOME environment variable is set before installing Jenkins.
Jenkins runs as a Windows service accessible at http://localhost:8080 by default.
Check for port conflicts and firewall settings if Jenkins does not start or is inaccessible.
Use silent install with msiexec for automated setups: msiexec /i jenkins.msi /quiet.