Loading

Quipoin Menu

Learn • Practice • Grow

jenkins / Installing Jenkins
tutorial

Installing Jenkins

To start using Jenkins, you need to install it. Jenkins can be installed on Linux, Windows, macOS, or as a Docker container. We'll cover the most common methods.

Prerequisites

  • Java 11 or 17 (OpenJDK or Oracle JDK) – Jenkins requires Java.
  • At least 2 GB of RAM (4 GB recommended).
  • Internet connection to download plugins.

Installing on Ubuntu (Linux)

Add the official Jenkins repository and install:
curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee /usr/share/keyrings/jenkins-keyring.asc > /dev/null
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list > /dev/null
sudo apt update
sudo apt install jenkins
Start Jenkins:
sudo systemctl start jenkins
sudo systemctl enable jenkins

Installing on Windows

1. Download the Windows installer from jenkins.io.
2. Run the installer – it will set up Jenkins as a Windows service.
3. After installation, open http://localhost:8080.

Running with Docker

The easiest way to try Jenkins:
docker run -p 8080:8080 -p 50000:50000 -v jenkins_home:/var/jenkins_home jenkins/jenkins:lts

Initial Setup

After installation, open http://localhost:8080. You'll see an Unlock Jenkins page. Get the initial admin password:
  • Ubuntu: sudo cat /var/lib/jenkins/secrets/initialAdminPassword
  • Windows: Look in C:ProgramDataJenkins.jenkinssecretsinitialAdminPassword
  • Docker: docker exec <container> cat /var/jenkins_home/secrets/initialAdminPassword
Paste the password, then install suggested plugins. Create an admin user and set the Jenkins URL.


Two Minute Drill
  • Jenkins requires Java 11 or 17.
  • On Ubuntu: add Jenkins repository, install via apt, start with systemctl.
  • On Windows: use the installer – runs as a service.
  • Docker: docker run -p 8080:8080 jenkins/jenkins:lts.
  • Initial password is stored in secrets/initialAdminPassword.

Need more clarification?

Drop us an email at career@quipoinfotech.com