How to build Jenkins 2.375 from Source Code using Jenkins 2.375 and Maven 3.8 without SCM
In this video we are going to see how to build Jenkins 2.375 Source code using Jenkins 2.375,
Apache Maven 3.8.7, JDK 11 without Source Code Management Tool (Directly build the project from local folder containing source code).
Below are the steps :
1. First create Maven project, pointing to Apache Maven 3.8.7 and JDK 11 Binaries.
2. Build the empty project so that new workspace folder will be created by Jenkins.
3. Now extract the source code zip file to newly created workspace folder. Make sure that pom.xml is present.
4. Now again build the project, jenkins will automatically pickup the pom.xml and source code directories.
5. After build is success we can browse the workspace to download the built binaries or folder as zip file.
Important Note: This method will be useful for the developers who does not wants the source code to be shared or hosted in Source Code Repositories like Git or SVN.
used below maven goals and options while building jenkins in jenkins.
spotless:apply clean install -DskipTests -Dmaven.multiModuleProjectDirectory=C:\Users\RAMANATHAN\.jenkins\workspace\Jenkins-2.375
spotless:apply --- this option is used to fix the format errors in pom.xml
-Dmaven.multiModuleProjectDirectory --- this option is used because maven was unable to recognize the parent POM or root POM in the directory.
Below is the download links for Jenkins 2.375 Source Code.
https://github.com/jenkinsci/jenkins/tags
https://github.com/jenkinsci/jenkins/releases/tag/jenkins-2.375.2
#jenkins #mavenproject #jenkinsproject #jenkinsmaven #devops #jenkinspipeline #jenkinstutorial #jenkinsvideos