Building Jenkins - linux-on-ibm-z/docs GitHub Wiki
The instructions provided below specify the steps to build Jenkins 2.452.2 on Linux on IBM Z for following distributions:
- RHEL (8.8, 8.9, 8.10, 9.2, 9.3, 9.4)
- SLES (12 SP5, 15 SP5)
- Ubuntu (20.04, 22.04, 23.10, 24,04)
General Notes:
-
When following the steps below please use a standard permission user unless otherwise specified.
-
Latest installers for Ubuntu and RHEL are available here. Also .deb and .rpm available through release page.
Note: Jenkins(v2.452.2) was verified at the time of creation of these instructions
Download binary(.war) for Jenkins latest version from here.
-
RHEL (8.8, 8.9, 8.10)
sudo yum install -y tar wget curl fontconfig
-
RHEL (9.2, 9.3, 9.4)
sudo yum install -y --allowerasing tar wget curl fontconfig
-
SLES (12 SP5, 15 SP5)
sudo zypper install -y tar wget curl dejavu-fonts gawk fontconfig gzip
-
Ubuntu (20.04, 22.04, 23.10, 24.04)
sudo apt-get update sudo apt-get install -y tar wget curl libfontconfig1
-
With IBM Semeru Runtime (previously known as AdoptOpenJDK openj9).
- Download and install IBM Semeru Runtime (Java 11, Java 17 or Java 21) from here.
-
With Eclipse Adoptium Temurin Runtime (previously known as AdoptOpenJDK hotspot)
- Download and install Eclipse Adoptium Temurin Runtime (Java 11, Java 17 or Java 21) from here.
-
With OpenJDK 11
- RHEL (8.8, 8.9, 8.10, 9.2, 9.3, 9.4)
sudo yum install -y java-11-openjdk
- SLES (12 SP5, 15 SP5)
sudo zypper install -y java-11-openjdk
- Ubuntu (20.04, 22.04, 23.10, 24.04)
sudo apt-get install -y openjdk-11-jre
- RHEL (8.8, 8.9, 8.10, 9.2, 9.3, 9.4)
-
With OpenJDK 17
- RHEL (8.8, 8.9, 8.10, 9.2, 9.3, 9.4)
sudo yum install -y java-17-openjdk
- SLES 15 SP5
sudo zypper install -y java-17-openjdk
- Ubuntu (20.04, 22.04, 23.10, 24.04)
sudo apt-get install -y openjdk-17-jre
- RHEL (8.8, 8.9, 8.10, 9.2, 9.3, 9.4)
-
With OpenJDK 21
- RHEL (8.8, 8.9, 8.10, 9.2, 9.3, 9.4)
sudo yum install -y java-21-openjdk
- Ubuntu (20.04, 22.04, 23.10, 24.04)
sudo apt-get install -y openjdk-21-jre
- RHEL (8.8, 8.9, 8.10, 9.2, 9.3, 9.4)
Note: Versions (v11.0.21, v17.0.9 and v21.0.1.0) of IBM Semeru Runtime and (v11.0.21, v17.0.9, 21.0.2) of Adoptium Temurin Runtime were used at the time of creation of these instructions
export JAVA_HOME=<path to Java installation directory>
export PATH=$JAVA_HOME/bin:$PATH
java -jar jenkins.war
Note: Open http://<ip_address>:8080 in your browser to access Web UI. Make sure firewall isn't blocking this port.