From 6056bfd5a8d038a660644e4e312af35ae3809064 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Mon, 17 Nov 2025 18:06:37 +0000 Subject: [PATCH 1/2] Updated the apache maven plugin version to 3.4.0 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 85f2e2e2a..3163a7df1 100644 --- a/pom.xml +++ b/pom.xml @@ -21,9 +21,9 @@ org.apache.maven.plugins maven-war-plugin - 2.1.1 + 3.4.0 - \ No newline at end of file + From 92eab0aaf86a69627d2ca27826fe9b9537656b3d Mon Sep 17 00:00:00 2001 From: Sanjay Date: Thu, 27 Nov 2025 12:28:02 +0530 Subject: [PATCH 2/2] Add Jenkins pipeline for build process --- Jenkinsfile | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..bc4190f84 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,44 @@ +pipeline { + agent any + + tools { + jdk 'jdk11' + maven 'maven3' + } + + stages { + + stage('Git Checkout') { + steps { + git 'https://github.com/sanjudhyan/hello-world-war.git' + } + } + + stage('Compile') { + steps { + sh "mvn compile" + } + } + + stage('Package') { + steps { + sh "mvn package" + } + } + + stage('Install') { + steps { + sh "mvn install" + } + } + } + + post { + success { + echo "Build completed successfully!" + } + failure { + echo "Build failed!" + } + } +}