Candid photograph of a Linux server terminal with a soft olive-green glow against a dark slate background, conveying a calm technical atmosphere.

Step-by-step guides for system administrators — covering command-line basics, web server setup, and preparation material for technical interviews.

Browse Tutorials

How to Install And Set Up Jenkins CI/CD Server On Fedora

Jenkins provides an extensible automation server for compiling code, running tests, packaging applications, and deploying releases. On Fedora, its Java-based controller can be installed with dnf, managed by systemd, and placed behind Nginx for secure access.

This guide suits a small development team, a homelab, or an Australian business running workloads in Sydney, Melbourne, Brisbane, or a local office. The commands use Fedora’s current package tools and include practical steps for firewall rules, initial security, reverse proxying, and routine maintenance.

Prepare The Fedora Host

Start with a supported Fedora installation that has a static address or a reliable DNS record. A modest controller can begin with two CPU cores and 4 GB of RAM, but builds involving containers, Android tools, or large test suites need more memory and storage.

Update the operating system and install basic utilities:

sudo dnf upgrade --refresh -y
sudo dnf install -y curl wget git unzip tar policycoreutils-python-utils

Set the system hostname so build logs and notifications identify the server clearly:

sudo hostnamectl set-hostname jenkins.example.com
hostnamectl status

For teams working across AEST and AEDT, use UTC on the server and let Jenkins jobs apply project-specific time zones. This prevents confusing schedules when daylight saving changes affect Sydney, Melbourne, and Canberra but not Queensland.

Install Java And Jenkins

Jenkins requires a supported Java runtime. Java 21 is a practical choice for a new Fedora installation:

sudo dnf install -y java-21-openjdk java-21-openjdk-devel
java -version

Add the Jenkins stable repository and import its signing key:

sudo wget -O /etc/yum.repos.d/jenkins.repo \
  https://pkg.jenkins.io/redhat-stable/jenkins.repo

sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2025.key
sudo dnf install -y jenkins

Enable and start the service, then confirm that it is running:

sudo systemctl enable --now jenkins
sudo systemctl status jenkins --no-pager

If the package repository changes its signing-key filename in a future release, check the official Jenkins repository instructions before importing a replacement key. Avoid disabling package signature verification.

Complete First-Time Configuration

Fedora’s firewall commonly blocks incoming connections by default. Permit Jenkins’ initial web port only from trusted networks when possible:

sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-port=8080/tcp
sudo firewall-cmd --reload

For a temporary internal setup, browse to http://server-address:8080. Retrieve the one-time administrator password with:

sudo cat /var/lib/jenkins/secrets/initialAdminPassword

Paste the value into the setup wizard, install the suggested plugins, and create a named administrator account. Do not continue using the initial password or share it in a ticket, chat room, or shell history.

Install only plugins that match your pipeline design. Git, Pipeline, Credentials Binding, SSH Build Agents, and Docker-related plugins are common choices, while unnecessary plugins expand the maintenance and security surface.

Publish Jenkins Safely With Nginx

Jenkins should not remain openly exposed on port 8080. Install Nginx and proxy a DNS name to the local service:

sudo dnf install -y nginx
sudo systemctl enable --now nginx

A basic virtual host can be saved as /etc/nginx/conf.d/jenkins.conf:

server {
    listen 80;
    server_name jenkins.example.com;

    location / {
        proxy_pass http://127.0.0.1:8080;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }
}

Test and reload the configuration:

sudo nginx -t
sudo systemctl reload nginx

Add TLS with an approved certificate, then set Jenkins’ public URL to https://jenkins.example.com. When a reverse proxy terminates HTTPS, check related browser asset problems using this mixed-content guidance. Remove public access to port 8080 after confirming Nginx works:

sudo firewall-cmd --permanent --remove-port=8080/tcp
sudo firewall-cmd --reload

Organise Builds And Backups

Jenkins stores jobs, credentials, plugin data, and configuration under /var/lib/jenkins. Keep build workspaces on fast storage, set retention policies, and avoid allowing a pipeline to consume the entire filesystem.

A simple backup can stop Jenkins briefly and archive its home directory:

sudo systemctl stop jenkins
sudo tar -czf /var/backups/jenkins-$(date +%F).tar.gz /var/lib/jenkins
sudo systemctl start jenkins

For larger installations, synchronise backups to separate storage with rsync file backups. Keep at least one copy away from the Fedora host, because a failed disk, accidental deletion, or ransomware event can affect local archives.

Area Small team setup Growing production setup
CPU and memory 2 cores, 4–8 GB RAM 4+ cores, 16 GB RAM or more
Agents Controller runs light jobs Separate agents for builds and tests
Access VPN or restricted office network Nginx, TLS, SSO, and IP controls
Backups Scheduled local archive Encrypted, off-host, tested restores
Scheduling UTC with documented windows Coordinated maintenance in AEST/AEDT

Run A Repeatable Operations Check

Before connecting repositories from GitHub, GitLab, or Bitbucket, verify the service, firewall, proxy, and storage paths. Australian teams often schedule releases outside busy customer periods, such as late evening in Sydney or Melbourne, while remembering that a Brisbane-based team may not observe daylight saving.

Use these quick checks during handover:

Review these Jenkins settings before the first production pipeline:

Create a small Pipeline job that checks out a repository, runs its test command, and stores an artefact. Then inspect the console log, confirm that the webhook reaches Jenkins, and schedule the first real deployment only after that test passes.