Skip to content

Building Jenkins

aborkar-ibm edited this page Jun 16, 2020 · 82 revisions

Building Jenkins

Latest builds for Ubuntu and RHEL are available here.

General Notes:

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

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

  • RHEL (7.6, 7.7, 7.8, 8.1, 8.2)

    • With IBM SDK

       sudo yum install -y java-1.8.0-ibm tar wget
      
    • With OpenJDK

       sudo yum install -y java-1.8.0-openjdk tar wget
      
    • With AdoptOpenJDK8 (Eclipse OpenJ9)

       sudo yum install -y tar wget curl fontconfig
      
      • Download and install AdoptOpenJDK (OpenJDK8 with Eclipse OpenJ9) from here.
    • With AdoptOpenJDK11 (Hotspot or Eclipse OpenJ9)

       sudo yum install -y tar wget curl fontconfig
      
      • Download and install AdoptOpenJDK (Hotspot or Eclipse OpenJ9) from here.
  • SLES (12 SP4, 12 SP5, 15 SP1)

    • With IBM SDK

       sudo zypper install -y java-1_8_0-ibm tar wget dejavu-fonts gawk
      
    • With OpenJDK

       sudo zypper install -y java-1_8_0-openjdk tar wget dejavu-fonts gawk
      
    • With AdoptOpenJDK8 (Eclipse OpenJ9)

       sudo zypper install -y curl tar wget dejavu-fonts gawk fontconfig gzip
      
      • Download and install AdoptOpenJDK (OpenJDK8 with Eclipse OpenJ9) from here.
    • With AdoptOpenJDK11 (Hotspot or Eclipse OpenJ9)

       sudo zypper install -y curl tar wget dejavu-fonts gawk fontconfig gzip
      
      • Download and install AdoptOpenJDK (Hotspot or Eclipse OpenJ9) from here.
  • Ubuntu (16.04, 18.04, 20.04)

    • With IBM SDK

       sudo apt-get update
       sudo apt-get install -y wget
      
      • Download and install IBM Java 8 from here.
    • With OpenJDK

       sudo apt-get update
       sudo apt-get install -y wget openjdk-8-jdk
      
    • With AdoptOpenJDK8 (Eclipse OpenJ9)

       sudo apt-get update
       sudo apt-get install -y tar wget libfontconfig1
      
      • Download and install AdoptOpenJDK (OpenJDK8 with Eclipse OpenJ9) from here.
    • With AdoptOpenJDK11 (Hotspot or Eclipse OpenJ9)

       sudo apt-get update
       sudo apt-get install -y tar wget libfontconfig1
      
      • Download and install AdoptOpenJDK (Hotspot or Eclipse OpenJ9) from here.
  • 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.

References:

https://github.com/jenkinsci/jenkins.git

https://jenkins.io/doc/book/installing/#war-file

Clone this wiki locally