Skip to content

Jenkins

Cnaik edited this page Apr 3, 2019 · 17 revisions

Building Jenkins

Below versions of Jenkins are available in respective distributions at the time of creation of these build instructions:

  • Ubuntu (16.04, 18.04) have 2.164.1

General Notes:

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

The binary for Jenkins latest version is available and can be downloaded from here. Following are the dependencies to be installed.

  • RHEL 6.10

    • With IBM SDK
       sudo yum install -y java-1.8.0-ibm java-1.8.0-ibm-devel tar wget 
      
  • RHEL (7.4, 7.5)

    • With IBM SDK

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

       sudo yum install -y java-1.8.0-openjdk-devel tar wget 
      
    • With AdoptOpenJDK (OpenJDK8 with Eclipse OpenJ9)

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

Note: At the time of creation of these build instructions Jenkins was verified with AdoptOpenJDK (OpenJDK8 with Eclipse OpenJ9) version (build openj9-0.12.1) .

  • SLES (12 SP3, 15)

    • With IBM SDK

       sudo zypper install -y java-1_8_0-ibm java-1_8_0-ibm-devel tar wget dejavu-fonts awk
      
    • WIth OpenJDK

       sudo zypper install -y java-1_8_0-openjdk-devel java-1_8_0-openjdk tar wget dejavu-fonts awk
      
    • WIth AdoptOpenJDK (OpenJDK8 with Eclipse OpenJ9)

       sudo zypper install -y curl tar wget dejavu-fonts awk fontconfig
      
      
      • Download and install AdoptOpenJDK (OpenJDK8 with Eclipse OpenJ9) from here.

Note: At the time of creation of these build instructions Jenkins was verified with AdoptOpenJDK (OpenJDK8 with Eclipse OpenJ9) version (build openj9-0.12.1) .

  • Ubuntu (16.04, 18.04)

    • With IBM SDK

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

Note: At the time of creation of these build instructions Jenkins was verified with IBM Java 8 version (build 8.0.5.30) .

* With OpenJDK 

	```
	sudo apt-get update 
	sudo apt-get install -y wget openjdk-8-jdk
	```
	
* With AdoptOpenJDK (OpenJDK8 with Eclipse OpenJ9)

	```
	sudo apt-get update
	sudo apt-get install -y tar wget libfontconfig1
	```   

	* Download and install AdoptOpenJDK (OpenJDK8 with Eclipse OpenJ9) from [here](https://adoptopenjdk.net/releases.html?variant=openjdk8&jvmVariant=openj9#s390x_linux).

Note: At the time of creation of these build instructions Jenkins was verified with AdoptOpenJDK (OpenJDK8 with Eclipse OpenJ9) version (build openj9-0.12.1) .

  • 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:

For Jenkins server:
https://github.com/jenkinsci/jenkins.git
https://jenkins.io/doc/book/installing/#war-file

For Jenkins slave:
https://github.com/jenkinsci/docker-slave/blob/master/README.md

Clone this wiki locally