Jenkins Installation Tutorial | Step-by-Step Guide for Beginners

  Are you looking to install Jenkins on your Windows 11 system but don't know where to start? 🤔 Don't worry! In this detailed guide, I'll walk you through the entire installation and configuration process step by step. By the end of this tutorial, you'll have a fully functional Jenkins server running on your machine! 🚀

What is Jenkins?

Jenkins is an open-source automation server that helps developers automate the building, testing, and deployment of software applications. It plays a crucial role in Continuous Integration (CI) and Continuous Deployment (CD) processes.

Step-by-Step Guide to Installing Jenkins on Windows 11

Step 1: Download Jenkins from the Official Website

  1. Open your web browser and visit the official Jenkins website: https://www.jenkins.io
  2. In the search bar, type “Jenkins download” and click on the first link.
  3. You'll see two options:
    • LTS (Long-Term Support) – Recommended for stability and production use.
    • Weekly Release – Contains the latest updates but may not be as stable.
  4. For this tutorial, we’ll download the LTS version.

Step 2: Check System Requirements

Before installing Jenkins, it’s essential to check the hardware and software requirements to ensure smooth operation.

Hardware Requirements:

🔹 Minimum: 256MB RAM, 1GB storage
🔹 Recommended for teams: 4GB RAM, 50GB storage

Software Requirements:

🔹 Java 11, 17, or 21 is required for Jenkins to run properly.

Step 3: Install Jenkins on Windows

  1. Select the Windows operating system on the download page.
  2. Click on the Windows Installer package (.msi) to download Jenkins.
  3. Once the download is complete, open the Jenkins installer file.

Installation Steps:

  1. Run the installer and choose your installation directory (default is fine).
  2. Click Next to continue.
  3. Select Local System as the service account (for running Jenkins under your current user account).
  4. Ensure that port 8080 is available (Jenkins runs on this port by default). If another service is using it, change the port number.
  5. Click Next to proceed.

Step 4: Install Java (If Not Installed Already)

Jenkins requires Java 11, 17, or 21 to function. If your system doesn’t have Java installed:

  1. Download Java 21 from the official Oracle website.
  2. Install Java and note down its directory path.
  3. During the Jenkins installation, select the Java installation directory when prompted.
  4. Click Next and proceed with the installation.

Step 5: Complete the Jenkins Installation

  1. After the installation, open your web browser and type:

    http://localhost:8080
  2. You'll be prompted to enter a secret password.
  3. Find the password in the following directory:

    C:\Program Files\Jenkins\secrets\initialAdminPassword
  4. Open this file in Notepad, copy the password, and paste it into the Jenkins login screen.
  5. Click Continue.

Step 6: Install Required Plugins

  1. On the next screen, select “Install suggested plugins”.
  2. Jenkins will begin installing all the necessary plugins automatically.
  3. Wait for the installation to complete.

Step 7: Create an Admin Account

  1. Enter a username, password, and email to create an admin account.
  2. Click Save and Finish.

Step 8: Start the Jenkins Server

Once the setup is complete, click "Start using Jenkins". 🎉

To verify that Jenkins is running, type in the terminal:


sc query jenkins

This command will display the current status of the Jenkins service.

Step 9: Start/Stop Jenkins Using Command Line

To start or stop the Jenkins server, use the following commands in the terminal:

🔹 To stop Jenkins:


sc stop jenkins

🔹 To start Jenkins:


sc start jenkins

Step 10: Modify Jenkins Configuration (Optional)

If you want to change Jenkins' default configurations, you can edit the jenkins.xml file, which is located in the installation directory.

For example, to change the port number, modify the following section:


<arguments>-Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%\jenkins.war" --httpPort=8080</arguments>

Change 8080 to your preferred port number and save the file.


Final Thoughts & Next Steps

Congratulations! 🎉 You’ve successfully installed and configured Jenkins on Windows 11. Now you can start exploring Jenkins and automate your software development processes.

In the next video, we will explore how to create and manage Jenkins projects. Stay tuned!

📽️ Watch the Full Tutorial on YouTube 🎥
👉 Watch Now

💡 Found this guide helpful?
✔️ Like, share, and subscribe for more tutorials!
✔️ Drop a comment if you have any questions or face issues.

#Jenkins #JenkinsInstallation #Windows11 #DevOps #CI_CD #Automation #SoftwareDevelopment

Comments

Popular posts from this blog

Google Assistant Implementation in Android application with app actions

What is an android Activity,AppCompatActivity and Fragment Activity. Interview Question