Course contentsShow
← Cloud and Infrastructure
Lesson 1772 of 2,98937. JenkinsFree lesson

Installing and Configuring Jenkins

Set up Jenkins on a server or container, perform initial configuration, and understand basic system settings and security setup.

Installing and Configuring Jenkins

You'll learn how to get Jenkins up and running on a server or in a container, complete with essential initial configuration and security settings.

What Installation Involves

Installing Jenkins is like moving into a new apartment and setting up the basics before you can really live there. You need to get the Jenkins software onto a server (physical or virtual), start it up, and then walk through the initial setup wizard to make it secure and usable.

Jenkins can run directly on a server (via package managers like apt or yum) or inside a Docker container for easier portability. For container deployment, you'd pull the official Jenkins image and map ports to access the web interface.

Initial Configuration Steps

After installation, Jenkins requires a first-time setup:

  1. Unlock Jenkins: On first launch, Jenkins generates a random administrator password stored in a file on the server. You retrieve this password to unlock the setup wizard.

  2. Plugin Installation: Jenkins offers suggested plugins (version control, build tools, notifications) or lets you pick custom ones. These extend Jenkins' capabilities—like adding apps to a new phone.

  3. Create Admin User: Set up your administrator credentials rather than using the temporary unlock password.

  4. Configure Instance URL: Define the Jenkins server's URL so it can generate correct links in notifications and webhooks.

Essential System Settings

Basic configuration includes:

  • Security realm: How users authenticate (local database, LDAP, SSO)
  • Authorization strategy: Who can do what (matrix-based permissions, role-based access)
  • Global tool configuration: Locations of Java, Git, Maven, etc.
  • Agent/executor configuration: How many concurrent jobs the master can handle

Think of this as setting your house rules and giving different family members different levels of access to rooms.

Key Takeaway: Installing Jenkins means deploying the software and completing the initial setup wizard to establish authentication, authorization, and basic system configuration—creating a secure, operational CI/CD platform.