Exercise
- Create the below Jenkins Distributed Setup
- Create two jenkins jobs free style
- openjdk 11 => spring pet clinic
- openjdk 8 => game of life
- Steps, Clone the repo and execute
mvn package
Global Tool Configurations
- To make the management of multiple tools or different versions of the same tools Jenkins has Global Tool Configuration
- Lets Navigate to Jenkins Global Tool Configuration
- Now lets install Latest version of Maven on the centos node Refer Here for the installation steps.
- Steps followed
sudo yum install wget
cd /tmp
wget https://dlcdn.apache.org/maven/maven-3/3.8.6/binaries/apache-maven-3.8.6-bin.tar.gz
tar -xvzf apache-maven-3.8.6-bin.tar.gz
sudo cp -r apache-maven-3.8.6 /opt
- Now add maven location in the Global tools
- Create a jenkins job to run on centos node with maven 3.8.6
- Now build the job