Jenkins Setup

Jenkins can be installed on all operating systems/distributions, and is made easier with their docker container. I will be installing it on an Ubuntu server as we have done in the GitLab section previous though. Docs for reference.

Jenkins also has a list of best practices which I advise you explore and set up according to your organisation or environment.

Module Objectives

  • Install Jenkins Server

  • Install plugins

  • Create your First Admin Account

Prerequisites

Minimum:
- 4GB RAM
- 64GB Disk Space
- Virtualisation Software (VMWare or VirtualBox)
- Any Platform/OS
- Git
- Java JDK 17 / 22

For a more in-depth list - check the documentation

Installing Jenkins

Installing Jenkins is straightforward - the commands below were taken from the Jenkins documentation found here. I converted it to a script for convenience (and future automation).

Save the file as whatever you'd like, then execute it to begin the installation process. This can take several minutes to complete. Once done, you should see this output

[+] Installation Complete
[!] Jenkins running on: http://YOUR-IP:8080
[!] Jenkins Password  : 9d2ad[..]c2c43e

Access the webpage from the IP address selected, then use the password that was generated for you (You must change this later). You should see the page below when the password has been entered

I'll click on the suggested plugins, though you can go with the other option as well. After the setup is complete, create your first admin user to access the main dashboard.

First Admin User

If you are using a DNS server and custom SSL certs or a FQDN, you can also specify that URL here instead of the IP address (For simplicity, I'll go with the default value)

You should be taken to this screen once you've made your choice (skip or set the URL settings)

You will also notice an error on the top right, this is due to us not having a build agent which we'll set up later.

Last updated