Skip to content

Building Jenkins

aborkar-ibm edited this page May 31, 2023 · 81 revisions

Building Jenkins

Latest installers for Ubuntu and RHEL are available here. Also .deb and .rpm available through release page

General Notes:

  • When following the steps below please use a standard permission user unless otherwise specified.

Note: Jenkins(v2.387.3) was verified at the time of creation of these instructions

Download binary(.war) for Jenkins latest version from here. Following are the dependencies to be installed.

  • RHEL (7.8, 7.9, 8.6, 8.7, 9.0, 9.1)

    • With IBM Semeru Runtime (previously known as AdoptOpenJDK openj9)

       sudo yum install -y tar wget curl fontconfig
      
      • Download and install IBM Semeru Runtime (Java 11 or 17) from here.
    • With Eclipse Adoptium Temurin Runtime (previously known as AdoptOpenJDK hotspot)

       sudo yum install -y tar wget curl fontconfig
      
      • Download and install Eclipse Adoptium Temurin Runtime (Java 11 or 17) from here.
    • With OpenJDK11

       sudo yum install -y java-11-openjdk
      
    • With OpenJDK17 (Only for RHEL 8.x, 9.x)

       sudo yum install -y java-17-openjdk
      
  • SLES (12 SP5, 15 SP4)

    • With IBM Semeru Runtime (previously known as AdoptOpenJDK openj9)

       sudo zypper install -y curl tar wget dejavu-fonts gawk fontconfig gzip
      
      • Download and install IBM Semeru Runtime (Java 11 or 17) from here.
    • With Eclipse Adoptium Temurin Runtime (previously known as AdoptOpenJDK hotspot)

       sudo zypper install -y curl tar wget dejavu-fonts gawk fontconfig gzip
      
      • Download and install Eclipse Adoptium Temurin Runtime (Java 11 or 17) from here.
    • With OpenJDK11

       sudo zypper install -y java-11-openjdk
      
    • With OpenJDK17 (Only for SLES 15 SP4)

       sudo zypper install -y java-17-openjdk
      
  • Ubuntu (20.04, 22.04, 22.10, 23.04)

    • With IBM Semeru Runtime (previously known as AdoptOpenJDK openj9)

        sudo apt-get update
        sudo apt-get install -y tar wget libfontconfig1
      
      • Download and install IBM Semeru Runtime (Java 11 or 17) from here.
    • With Eclipse Adoptium Temurin Runtime (previously known as AdoptOpenJDK hotspot)

        sudo apt-get update
        sudo apt-get install -y tar wget libfontconfig1
      
      • Download and install Eclipse Adoptium Temurin Runtime (Java 11 or 17) from here.
    • With OpenJDK11

       sudo apt-get install -y openjdk-11-jre
      
    • With OpenJDK17

       sudo apt-get install -y openjdk-17-jre
      
  • Set environment variables

     export JAVA_HOME=<path to Java installation directory>
     export PATH=$JAVA_HOME/bin:$PATH
  • Start Jenkins server

     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.

References:

Clone this wiki locally