jenkins1.651.2 - sinherle/Recipes GitHub Wiki
Building Jenkins
Jenkins version 1.651.2 has been successfully built and tested for Linux on z Systems. The following instructions can be used for RHEL 6.6, RHEL 7.1, SLES 11, SLES 12 and Ubuntu 16.04.
General Notes:
i) When following the steps below please use a standard permission user unless otherwise specified.
ii) A directory /<source_root>/
will be referred to in these instructions, this is a temporary writeable directory anywhere you'd like to place it.
Step 1: Install the dependencies
Following are the build dependencies for Jenkins:
- git (RHEL6/7 and Ubuntu 16.04) or git-core (SLES11/12)
- Maven
Dependencies Installation Notes:
-
Git can be installed on RHEL6/7 using the command below.
sudo yum install -y git
-
Git can be installed on SLES11/12 using the command below.
sudo zypper install -y git-core
-
Git can be installed on Ubuntu 16.04 using the command below
sudo apt-get install -y git
-
To install Maven
For RHEL6/7 and SLES11/12 Please refer to the Maven recipe.
For Ubuntu 16.04
sudo apt-get install -y maven
export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=1024m"
-
To install Java, use the command below,(Only for Ubuntu 16.04)
sudo apt-get install openjdk-8-jdk export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-s390x export PATH=$JAVA_HOME/bin:$PATH
Step 2: Build Jenkins
-
Get the source (clone branch 1.651.2 )
cd /<source_root>/ git clone https://github.com/jenkinsci/jenkins.git cd /<source_root>/jenkins git checkout jenkins-1.651.2
-
Build the source code using mvn command
cd /<source_root>/jenkins mvn clean install -pl war -am -DskipTests
-
To execute test cases [optional]
mvn clean install -pl war -am
Note: User can ignore intermittent test-case failures as it does not affect the functionality (jenkins.security.DefaultConfidentialStoreTest, hudson.LauncherTest and hudson.util.io.TarArchiverTest are the test cases that fail due to wrongly set file path permissions)
After building jenkins, a
jenkins.war
will be created in jenkins/war/target folder.
Step 3: Deploy Jenkins
- Refer to the Deploy section of Apache Tomcat recipe for deploying jenkins.war on Apache Tomcat.