DevOps Classroomnotes 22/Sep/2022

Exercise

  • Create the below Jenkins Distributed Setup
    Preview
  • 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
    Preview
    Preview
    Preview
  • 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
    Preview
  • Create a jenkins job to run on centos node with maven 3.8.6
    Preview
    Preview
  • Now build the job
    Preview

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About continuous learner

devops & cloud enthusiastic learner