From b2b72b964606e464420b447280e4bdd78c877c5b Mon Sep 17 00:00:00 2001 From: Mithun Technologies Date: Fri, 29 Mar 2024 20:09:14 +0530 Subject: [PATCH 01/67] Update JenkinsfileJan2024 --- JenkinsfileJan2024 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/JenkinsfileJan2024 b/JenkinsfileJan2024 index cc8d7324d4..6e81fdab1e 100644 --- a/JenkinsfileJan2024 +++ b/JenkinsfileJan2024 @@ -6,6 +6,12 @@ tools{ maven 'maven3.9.6' } +echo "The Job name is: ${env.JOB_NAME}" +echo "The Nod ename is: ${env.NODE_NAME}" +echo "The Build Number is: ${env.BUILD_NUMBER}" +echo "The Jenkins Home directory is: ${JENKINS_HOME}" + + //Checkout code stages{ stage('CheckOuteCode'){ From 5f04f42590917c094710811851b04886209c4476 Mon Sep 17 00:00:00 2001 From: Mithun Technologies Date: Mon, 24 Jun 2024 19:54:42 +0530 Subject: [PATCH 02/67] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index d832dea9c7..41e8043e03 100644 --- a/pom.xml +++ b/pom.xml @@ -98,13 +98,13 @@ nexus Mithun Technologies Releases Nexus Repository - http://54.255.174.111:8081/repository/flipkart-release/ + http://172.31.40.189:8081/repository/flipkart-release/ nexus Mithun Technologies Snapshot Nexus Repository - http://54.255.174.111:8081/repository/flipkart-snapshot/ + http://172.31.40.189:8081/repository/flipkart-snapshot/ From 4786f83666ba6808a12867e339c11c8180480a24 Mon Sep 17 00:00:00 2001 From: Mithun Technologies Date: Thu, 25 Jul 2024 06:50:52 +0530 Subject: [PATCH 03/67] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 41e8043e03..1e2b65d252 100644 --- a/pom.xml +++ b/pom.xml @@ -98,13 +98,13 @@ nexus Mithun Technologies Releases Nexus Repository - http://172.31.40.189:8081/repository/flipkart-release/ + http://13.212.71.229:9980/mithuntechnologies/repository/canarabank-snapshot/ nexus Mithun Technologies Snapshot Nexus Repository - http://172.31.40.189:8081/repository/flipkart-snapshot/ + http://13.212.71.229:9980/mithuntechnologies/repository/canarabank-release/ From f6e147542c3116a0012bbeadfb20ccfd643b50eb Mon Sep 17 00:00:00 2001 From: mithuntechdevopstraining Date: Mon, 9 Sep 2024 19:32:23 +0530 Subject: [PATCH 04/67] Update Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d2eb418feb..dbac77e267 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,2 +1,2 @@ -FROM tomcat:8.0.21-jre8 -COPY target/maven-web-application.war /usr/local/tomcat/webapps/maven-web-application.war \ No newline at end of file +FROM tomcat:9.0-jdk11 +COPY target/maven-web-application.war /usr/local/tomcat/webapps/maven-web-application.war From 253c246190b1aabfeae72716d02b66f9e3d6e66a Mon Sep 17 00:00:00 2001 From: "devopstrainingbanglore@gmail.com" Date: Mon, 9 Sep 2024 21:17:32 +0530 Subject: [PATCH 05/67] Updated --- Dockerfile | 2 +- src/main/webapp/jsps/home.jsp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index dbac77e267..473c23c760 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,2 +1,2 @@ FROM tomcat:9.0-jdk11 -COPY target/maven-web-application.war /usr/local/tomcat/webapps/maven-web-application.war +COPY target/maven-web-application.war /usr/local/tomcat/webapps/maven-web-application.war \ No newline at end of file diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index 2d563be969..616c7519bd 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -9,8 +9,8 @@ -

Welcome to Mithun Technologies Private Ltd. Ph No: +91-9980923226, +91-9980923216 ,+91-9900012028,Bengaluru,Karnataka,India

-

Mithun Technologies- Very Good Training center for DevOps with AWS,Python & AWS Solution Architect & Terraform in Bangalore India.Teaching Real Time scnerios

+

Welcome to Mithun Technologies Private Ltd. Ph No: +91-9980923226 ,+91-9900012028,Bengaluru,Karnataka,India

+

Mithun Technologies- Very Good Training center for DevOps with AWS,Terraform & AWS Solution Architect & Terraform in Bangalore India.Teaching Real Time scnerios



Server Side IP Address


From a7655056c20d8ab1cb32a5a5a5f08079923255a4 Mon Sep 17 00:00:00 2001 From: "devopstrainingbanglore@gmail.com" Date: Mon, 23 Sep 2024 20:42:43 +0530 Subject: [PATCH 06/67] Updated --- src/main/webapp/jsps/home.jsp | 2 +- .../com/mt/services/EmployeeService.class | Bin 1595 -> 0 bytes 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 target/classes/com/mt/services/EmployeeService.class diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index 616c7519bd..8cb095b79f 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -9,7 +9,7 @@ -

Welcome to Mithun Technologies Private Ltd. Ph No: +91-9980923226 ,+91-9900012028,Bengaluru,Karnataka,India

+

Welcome to Mithun Technologies Private Ltd. Ph No: +91-9980923226,Bengaluru,Karnataka,India

Mithun Technologies- Very Good Training center for DevOps with AWS,Terraform & AWS Solution Architect & Terraform in Bangalore India.Teaching Real Time scnerios



diff --git a/target/classes/com/mt/services/EmployeeService.class b/target/classes/com/mt/services/EmployeeService.class deleted file mode 100644 index bd7b4db3ed9ddb461bbd1ad91191411ba2ff93e7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1595 zcmb7EZBH9V5PlX6K8TwTL(AdHBjep=g8d&&9sdbf7M z=l-02X}=^=EAwE>PKav$M-c^qv18R!GE#9%?$wW}VFiXC=~&yx0)w-2M*@XS)1*-hVx)v2 z3=3SU>X>%BojRq5sveO*xoR3JI#Q{2=l;)vZR<>6x_SM1`X9S2(#<*;eeb>1yvPwr>)!`1=wrL7H{NM=rMNV+= z>Gq+(gAcgx%ei5iCzT>@Ftqnd;^{Mr>lg_z#k|?&d;?6g-7{_5-8ej?Mmsir{|2$VKe6mjuFA9#+d^L{?hVt04Y%1G4(n_3a~7&c0j7>oaA6N(>mN>#M%5IsYaU>^WhFfu1BFY z;l43xxKAdDXmK&X7XlaeBgL~8wkeGCOV0mGp0ORBg)wuYM`7aBF8PNgtl}$yz#7jv zfr;5OnOICc-vwsQWxO8@_L`FKmcaSb)E^TrjhnO@QP>u8W_U`UQ6D9_mB7lT*M`IHO5kbHJ35Y(hYVy!QYi1 zATnIV$Gj7+VG^IP)&=^7?+o$2{s*qVc#E5Bg~>wsRyllwPoJ~&d3m-k-7U}erN#16 zU%Fpj@zNVS_?4Xuz=6D#JHCby4l~YyZZb_~7|JqB6-?#eSA5V@@atG(ol9;VkMK2n ja?)db;~s2g*tdKt@ZXI*%4VKina^8%p5S{v!R>zl(Il_b From 5d1b21f6eeb8eb1168de404dad40c8293e349158 Mon Sep 17 00:00:00 2001 From: mithuntechdevopstraining Date: Tue, 22 Oct 2024 07:09:31 +0530 Subject: [PATCH 07/67] Update pom.xml --- pom.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pom.xml b/pom.xml index 1e2b65d252..88d0ca0514 100644 --- a/pom.xml +++ b/pom.xml @@ -113,6 +113,11 @@ maven-web-application + + org.apache.maven.plugins + maven-war-plugin + 3.3.2 + org.apache.maven.plugins maven-compiler-plugin From 2a5a025bc732dc82170069d24df16d179a396d9f Mon Sep 17 00:00:00 2001 From: "devopstrainingbanglore@gmail.com" Date: Tue, 22 Oct 2024 07:25:47 +0530 Subject: [PATCH 08/67] Updated Code --- src/main/webapp/jsps/home.jsp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index 8cb095b79f..97fade94bf 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -9,8 +9,8 @@ -

Welcome to Mithun Technologies Private Ltd. Ph No: +91-9980923226,Bengaluru,Karnataka,India

-

Mithun Technologies- Very Good Training center for DevOps with AWS,Terraform & AWS Solution Architect & Terraform in Bangalore India.Teaching Real Time scnerios

+

Welcome to Mithun Technologies Private Ltd. Ph No: +91-9980923226,+91-9900012028 Bengaluru,Karnataka,India

+

Mithun Technologies- Very Good Training center for DevOps with AWS,Azure Admin & Azure DevOps ,Terraform & AWS Solution Architect & Terraform in Bangalore India.Teaching Real Time scnerios



Server Side IP Address


From b609341d0ce4c736d33ab9be1629902e3ed4178b Mon Sep 17 00:00:00 2001 From: Mithun Technologies Date: Wed, 18 Dec 2024 21:16:53 +0530 Subject: [PATCH 09/67] Updated Code --- src/main/webapp/jsps/home.jsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index 97fade94bf..51bf622f0b 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -9,7 +9,7 @@ -

Welcome to Mithun Technologies Private Ltd. Ph No: +91-9980923226,+91-9900012028 Bengaluru,Karnataka,India

+

Welcome to Mithun Technologies Private Ltd. Ph No: +91-9980923226,+91-9900012028

Mithun Technologies- Very Good Training center for DevOps with AWS,Azure Admin & Azure DevOps ,Terraform & AWS Solution Architect & Terraform in Bangalore India.Teaching Real Time scnerios



From b2896cfed2520d1c3569ca940e8f1c37a09c61ae Mon Sep 17 00:00:00 2001 From: Mithun Technologies Date: Sat, 4 Jan 2025 20:14:50 +0530 Subject: [PATCH 10/67] Updated --- src/main/webapp/jsps/home.jsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index 51bf622f0b..d275c90ab5 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -10,7 +10,7 @@

Welcome to Mithun Technologies Private Ltd. Ph No: +91-9980923226,+91-9900012028

-

Mithun Technologies- Very Good Training center for DevOps with AWS,Azure Admin & Azure DevOps ,Terraform & AWS Solution Architect & Terraform in Bangalore India.Teaching Real Time scnerios

+

Mithun Technologies- Very Good Training center for DevOps with AWS,Azure Admin & Azure DevOps ,Terraform & AWS Solution Architect , Python Training in Bangalore India.Teaching Real Time scnerios



Server Side IP Address


From 275a07ff2f2f56d901fec0b8d126f37e15cb7f4d Mon Sep 17 00:00:00 2001 From: Mithun Technologies Date: Thu, 9 Jan 2025 07:50:20 +0530 Subject: [PATCH 11/67] Updated Code --- src/main/webapp/jsps/home.jsp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index d275c90ab5..4637bf5fec 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -11,6 +11,8 @@

Welcome to Mithun Technologies Private Ltd. Ph No: +91-9980923226,+91-9900012028

Mithun Technologies- Very Good Training center for DevOps with AWS,Azure Admin & Azure DevOps ,Terraform & AWS Solution Architect , Python Training in Bangalore India.Teaching Real Time scnerios

+ +

Trainer Name: Balaji Reddy L



Server Side IP Address


From 751b9fbd5e07f35e85bbe28dae0acead248a9e32 Mon Sep 17 00:00:00 2001 From: Mithun Technologies Date: Tue, 21 Jan 2025 06:46:59 +0530 Subject: [PATCH 12/67] Updated Code --- src/main/webapp/jsps/home.jsp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index 4637bf5fec..c7c75a6205 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -10,9 +10,9 @@

Welcome to Mithun Technologies Private Ltd. Ph No: +91-9980923226,+91-9900012028

-

Mithun Technologies- Very Good Training center for DevOps with AWS,Azure Admin & Azure DevOps ,Terraform & AWS Solution Architect , Python Training in Bangalore India.Teaching Real Time scnerios

+

Mithun Technologies- Very Good Training center for DevOps with AWS,Azure Admin & Azure DevOps ,Terraform & AWS Solution Architect in Bangalore India.Teaching Real Time scnerios

-

Trainer Name: Balaji Reddy L

+

Trainer Name: Balaji Reddy Lachhannagari



Server Side IP Address


From 9550392983219dd62288bdc6e4df10b6a76dd64c Mon Sep 17 00:00:00 2001 From: Mithun Technologies Date: Sat, 25 Jan 2025 19:48:21 +0530 Subject: [PATCH 13/67] Udpated Code --- src/main/webapp/jsps/home.jsp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index c7c75a6205..c7bfcfaf96 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -9,8 +9,8 @@ -

Welcome to Mithun Technologies Private Ltd. Ph No: +91-9980923226,+91-9900012028

-

Mithun Technologies- Very Good Training center for DevOps with AWS,Azure Admin & Azure DevOps ,Terraform & AWS Solution Architect in Bangalore India.Teaching Real Time scnerios

+

Welcome to Mithun Technologies. Ph No: +91-9980923226,+91-9900012028

+

Mithun Technologies- Very Good Training center for DevOps & Cloud

Trainer Name: Balaji Reddy Lachhannagari


From d068014a8ffafe47b9a679e33f5ec3a8403c91ad Mon Sep 17 00:00:00 2001 From: Mithun Technologies Date: Fri, 7 Feb 2025 06:42:08 +0530 Subject: [PATCH 14/67] Updated Code --- src/main/webapp/jsps/home.jsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index c7bfcfaf96..fd032b1c66 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -12,7 +12,7 @@

Welcome to Mithun Technologies. Ph No: +91-9980923226,+91-9900012028

Mithun Technologies- Very Good Training center for DevOps & Cloud

-

Trainer Name: Balaji Reddy Lachhannagari

+

Trainer Name: Balaji Reddy



Server Side IP Address


From ca769ca3a42f1c65ecd67831f9d232a5a6feb823 Mon Sep 17 00:00:00 2001 From: Mithun Technologies Date: Fri, 7 Feb 2025 06:58:38 +0530 Subject: [PATCH 15/67] Updated Code --- src/main/webapp/jsps/home.jsp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index fd032b1c66..af3e7430ef 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -10,9 +10,9 @@

Welcome to Mithun Technologies. Ph No: +91-9980923226,+91-9900012028

-

Mithun Technologies- Very Good Training center for DevOps & Cloud

+

Mithun Technologies- Very Good Training center for DevOps & Cloud, Python

-

Trainer Name: Balaji Reddy

+

Trainer Name: Balaji Reddy Lachhannagari



Server Side IP Address


From daa69e6ea0406f3a95847f49371949543a1ffd68 Mon Sep 17 00:00:00 2001 From: Mithun Technologies Date: Fri, 7 Feb 2025 07:05:14 +0530 Subject: [PATCH 16/67] Updated --- src/main/webapp/jsps/home.jsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index af3e7430ef..b1854642be 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -10,7 +10,7 @@

Welcome to Mithun Technologies. Ph No: +91-9980923226,+91-9900012028

-

Mithun Technologies- Very Good Training center for DevOps & Cloud, Python

+

Mithun Technologies- Very Good Training center for DevOps & Cloud, Python, Java & Node JS

Trainer Name: Balaji Reddy Lachhannagari


From 932c0ad1375ebe462019c063a5e9d73a2c1e31cd Mon Sep 17 00:00:00 2001 From: Mithun Technologies Date: Tue, 4 Mar 2025 16:35:42 +0530 Subject: [PATCH 17/67] Update home.jsp --- src/main/webapp/jsps/home.jsp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index b1854642be..0c301d8b92 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -9,7 +9,7 @@ -

Welcome to Mithun Technologies. Ph No: +91-9980923226,+91-9900012028

+

Welcome to Mithun Technologies. Ph No: +91-9980923226,+91-9014996877

Mithun Technologies- Very Good Training center for DevOps & Cloud, Python, Java & Node JS

Trainer Name: Balaji Reddy Lachhannagari

@@ -37,9 +37,9 @@ out.println("Server Host Name :: "+inetAddress.getHostName()); Mithun Technologies, - Martha Halli, Above ICICI Bank, Beside Meghana Foods, + Martha Halli Bangalore, - +91-9980923226,+91-9900012028 + +91-9980923226,+91-9014996877 devopstrainingblr@gmail.com
Mail to Mithun Technologies @@ -50,7 +50,7 @@ out.println("Server Host Name :: "+inetAddress.getHostName());

Mithun Technologies - Consultant, Training, Development Center.

-

Copyrights 2022 by Mithun Technologies,Bengaluru

+

Copyrights 2025 by Mithun Technologies,Bengaluru

From 10e6c3feaa44da57bdc08bc477340ab4485a08f6 Mon Sep 17 00:00:00 2001 From: Mithun Technologies Date: Mon, 10 Mar 2025 22:04:42 +0530 Subject: [PATCH 18/67] Update home.jsp --- src/main/webapp/jsps/home.jsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index 0c301d8b92..52b41a16f1 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -12,7 +12,7 @@

Welcome to Mithun Technologies. Ph No: +91-9980923226,+91-9014996877

Mithun Technologies- Very Good Training center for DevOps & Cloud, Python, Java & Node JS

-

Trainer Name: Balaji Reddy Lachhannagari

+

Trainer Name: Bhaskar Reddy Lacchannagari



Server Side IP Address


From f36cda89d5013795e3c72ce63d3a2ea36ea1cc5e Mon Sep 17 00:00:00 2001 From: Mithun Technologies Date: Mon, 24 Mar 2025 19:46:56 +0530 Subject: [PATCH 19/67] Update pom.xml --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 88d0ca0514..cfc5be39ad 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,7 @@ 5.1.2.RELEASE 4.11 1.2.17 - http://18.138.81.149:9000/ + http://172.31.33.143:9000/ admin passw0rd UTF-8 @@ -98,13 +98,13 @@ nexus Mithun Technologies Releases Nexus Repository - http://13.212.71.229:9980/mithuntechnologies/repository/canarabank-snapshot/ + http://172.31.42.154:9980/mithuntechnologies/repository/canarabank-snapshot/ nexus Mithun Technologies Snapshot Nexus Repository - http://13.212.71.229:9980/mithuntechnologies/repository/canarabank-release/ + http://172.31.42.154:9980/mithuntechnologies/repository/canarabank-release/ From 4b55a7f6147c25d29458b232338e541d8250b1f4 Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Fri, 4 Apr 2025 09:50:58 +0530 Subject: [PATCH 20/67] Updated Project Code --- src/main/webapp/jsps/home.jsp | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index 52b41a16f1..cf40ef2357 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -9,10 +9,12 @@ -

Welcome to Mithun Technologies. Ph No: +91-9980923226,+91-9014996877

-

Mithun Technologies- Very Good Training center for DevOps & Cloud, Python, Java & Node JS

+

Welcome to Mithun Technologies

+

Phone Number: +91 9980923216

+

Mithun Technologies is a Very Good Training Center for DevOps, Cloud, Kubernetes and Terraform

+ +

Trainer Name: Bhaskar Reddy Lacchannagari/h1> -

Trainer Name: Bhaskar Reddy Lacchannagari



Server Side IP Address


@@ -24,12 +26,12 @@ ip = inetAddress.getHostAddress(); out.println("Server Host Name :: "+inetAddress.getHostName()); %>
-<%out.println("Server IP Address :: "+ip);%> +<%out.println("Server IP Address :: "+ip);%>

Client Side IP Address


-<%out.print( "Client IP Address :: " + request.getRemoteAddr() ); %>
-<%out.print( "Client Name Host :: "+ request.getRemoteHost() );%>
+<%out.print( "Client IP Address :: "+request.getRemoteAddr()); %>
+<%out.print( "Client Name Host :: "+request.getRemoteHost() );%>

@@ -37,9 +39,9 @@ out.println("Server Host Name :: "+inetAddress.getHostName()); Mithun Technologies, - Martha Halli - Bangalore, - +91-9980923226,+91-9014996877 + Marathahalli, + Bengaluru, + +91 9980923216 and devopstrainingblr@gmail.com
Mail to Mithun Technologies @@ -53,4 +55,4 @@ out.println("Server Host Name :: "+inetAddress.getHostName());

Copyrights 2025 by Mithun Technologies,Bengaluru

- + \ No newline at end of file From bc1bb1b400811b00c6c8db5eb5450666dd65ab9e Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Fri, 4 Apr 2025 09:55:03 +0530 Subject: [PATCH 21/67] Updated Project Code --- src/main/webapp/jsps/home.jsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index cf40ef2357..d8f05b80b5 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -13,7 +13,7 @@

Phone Number: +91 9980923216

Mithun Technologies is a Very Good Training Center for DevOps, Cloud, Kubernetes and Terraform

-

Trainer Name: Bhaskar Reddy Lacchannagari/h1> +

Trainer Name: Bhaskar Reddy Lacchannagari



From 0d112ec8beffaaf64a3be717d96d7072cb4dd7a5 Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Fri, 4 Apr 2025 09:56:37 +0530 Subject: [PATCH 22/67] Updated Project Code --- src/main/webapp/jsps/home.jsp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index d8f05b80b5..5dbc70dd96 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -44,14 +44,14 @@ out.println("Server Host Name :: "+inetAddress.getHostName()); +91 9980923216 and devopstrainingblr@gmail.com
- Mail to Mithun Technologies + Mail to Mithun Technologies

Service : Get Employee Details



-

Mithun Technologies - Consultant, Training, Development Center.

+

Mithun Technologies - Consultant, Training and Development Center.

Copyrights 2025 by Mithun Technologies,Bengaluru

From a9050bc271d30858086ea92bb01484f8eb4832eb Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Fri, 4 Apr 2025 09:59:54 +0530 Subject: [PATCH 23/67] Updated Project Code --- src/main/webapp/jsps/home.jsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index 5dbc70dd96..e340db6f9e 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -42,7 +42,7 @@ out.println("Server Host Name :: "+inetAddress.getHostName()); Marathahalli, Bengaluru, +91 9980923216 and - devopstrainingblr@gmail.com + Devopstrainingblr@Gmail.com
Mail to Mithun Technologies
From b06d197d7f9a04ad963a92ab1414f559788251c7 Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Fri, 4 Apr 2025 10:05:00 +0530 Subject: [PATCH 24/67] Updated Project Code --- MavenWebApplication.yaml | 42 ++++++++++++++++++++++++++++++++++++++ mavenwebappdeployment.yaml | 42 -------------------------------------- 2 files changed, 42 insertions(+), 42 deletions(-) create mode 100644 MavenWebApplication.yaml delete mode 100644 mavenwebappdeployment.yaml diff --git a/MavenWebApplication.yaml b/MavenWebApplication.yaml new file mode 100644 index 0000000000..39ad0366fb --- /dev/null +++ b/MavenWebApplication.yaml @@ -0,0 +1,42 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: webpage-deployment + namespace: production +spec: + replicas: 2 + revisionHistoryLimit: 5 + selector: + matchLabels: + application: webpage + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 + maxUnavailable: 1 + minReadySeconds: 30 + template: + metadata: + name: webpage-pod + labels: + application: webpage + spec: + containers: + - name: webpage-container + image: mithuntechnologies/maven-web-application:1 + imagePullPolicy: Always + ports: + - containerPort: 8080 +--- +apiVersion: v1 +kind: Service +metadata: + name: webpage-service + namespace: production +spec: + type: NodePort + selector: + application: webpage + ports: + - port: 80 + targetPort: 8080 \ No newline at end of file diff --git a/mavenwebappdeployment.yaml b/mavenwebappdeployment.yaml deleted file mode 100644 index 8574e3267d..0000000000 --- a/mavenwebappdeployment.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: mavenwebappdeployment -spec: - revisionHistoryLimit: 10 - replicas: 2 - strategy: - type: Recreate - selector: - matchLabels: - app: mavenwebapp - template: - metadata: - name: mavenwebapppod - labels: - app: mavenwebapp - spec: - containers: - - name: mavenwebappcontainer - image: dockerhandson/maven-web-application:TAG - ports: - - containerPort: 8080 - resources: - requests: - cpu: 200m - memory: 256Mi - limits: - cpu: 500m - memory: 512Mi ---- -apiVersion: v1 -kind: Service -metadata: - name: mavenwebappsvc -spec: - selector: - app: mavenwebapp - type: NodePort - ports: - - port: 80 - targetPort: 8080 From b42b8baa717b48928677a8a2c32e065f0d07cd61 Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Fri, 4 Apr 2025 12:35:30 +0530 Subject: [PATCH 25/67] Updated Project Code --- Jenkinsfile1 => Jenkinsfile | 0 Jenkinsfile7AMNovBatch2022 | 49 ----------------- JenkinsfileApril6AMBatch | 36 ------------- JenkinsfileAugBacth2022 | 84 ----------------------------- JenkinsfileFeb7.30Batch | 35 ------------ JenkinsfileJan2024 | 93 -------------------------------- JenkinsfileJune2023 | 37 ------------- JenkinsfileMarch2023 | 39 -------------- JenkinsfileMarchdp | 103 ------------------------------------ JenkinsfileOctBatch2022 | 84 ----------------------------- JenkinsfileSepBatch | 52 ------------------ JenkinsfileSepBatch2022 | 75 -------------------------- Jenkinsparalleljob | 39 -------------- Jenkinspipeline | 38 ------------- JenkinswithAnsible | 49 ----------------- appdeploy.yaml | 2 +- docker-compose.yml | 2 +- 17 files changed, 2 insertions(+), 815 deletions(-) rename Jenkinsfile1 => Jenkinsfile (100%) delete mode 100644 Jenkinsfile7AMNovBatch2022 delete mode 100644 JenkinsfileApril6AMBatch delete mode 100644 JenkinsfileAugBacth2022 delete mode 100644 JenkinsfileFeb7.30Batch delete mode 100644 JenkinsfileJan2024 delete mode 100644 JenkinsfileJune2023 delete mode 100644 JenkinsfileMarch2023 delete mode 100644 JenkinsfileMarchdp delete mode 100644 JenkinsfileOctBatch2022 delete mode 100644 JenkinsfileSepBatch delete mode 100644 JenkinsfileSepBatch2022 delete mode 100644 Jenkinsparalleljob delete mode 100644 Jenkinspipeline delete mode 100644 JenkinswithAnsible diff --git a/Jenkinsfile1 b/Jenkinsfile similarity index 100% rename from Jenkinsfile1 rename to Jenkinsfile diff --git a/Jenkinsfile7AMNovBatch2022 b/Jenkinsfile7AMNovBatch2022 deleted file mode 100644 index e40817d597..0000000000 --- a/Jenkinsfile7AMNovBatch2022 +++ /dev/null @@ -1,49 +0,0 @@ -node{ - -properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), [$class: 'JobLocalConfiguration', changeReasonComment: ''], pipelineTriggers([pollSCM('* * * * *')])]) - -echo "The Job name is: ${env.JOB_NAME}" -echo "The Nod ename is: ${env.NODE_NAME}" -echo "The Build Number is: ${env.BUILD_NUMBER}" -echo "The Jenkins Home directory is: ${JENKINS_HOME}" - -def mavenHome = tool name: "maven3.8.6" - -try{ -sendSlackNotifications("STARTED") - -stage('CheckoutCode'){ -git branch: 'development', credentialsId: 'd3b6896a-ebbd-4396-8b5c-850f74d96a39', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git' -} - -stage('Build'){ -sh "${mavenHome}/bin/mvn clean package" -} -/* -stage('ExecuteSonarQubeReport'){ -sh "${mavenHome}/bin/mvn sonar:sonar" -} - -stage('UploadArtifactsIntoNexus'){ -sh "${mavenHome}/bin/mvn deploy" -} - -stage('DeployAppIntoTomcatServer'){ -sshagent(['48c992f5-c73e-40ba-b71b-9191b6f93285']) { - sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.10.36:/usr/local/apache-tomcat-9.0.70/webapps/" -} -} - -*/ -}//try closing -catch(e){ -currentBuild.result = "FAILURE" -} -finally{ -sendSlackNotifications(currentBuild.result) -} - -} - - - diff --git a/JenkinsfileApril6AMBatch b/JenkinsfileApril6AMBatch deleted file mode 100644 index 2a0e892ecd..0000000000 --- a/JenkinsfileApril6AMBatch +++ /dev/null @@ -1,36 +0,0 @@ -node{ - -def mavenHome = tool name: 'maven3.9.2' - -echo "Job name is: $JOB_NAME" -echo "Node name is: $NODE_NAME" -echo "Jenkins Home url is: $JENKINS_HOME" - -properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), [$class: 'JobLocalConfiguration', changeReasonComment: ''], pipelineTriggers([pollSCM('* * * * *')])]) - -stage('CheckOutCode'){ -git branch: 'development', credentialsId: '7234a3b2-097a-4e4b-a14d-a9e98131fa2b', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git' -} - -stage('Build'){ -sh "${mavenHome}/bin/mvn clean package" -} - -/* -stage('ExecuteSonarQubeReport'){ -sh "${mavenHome}/bin/mvn clean sonar:sonar" -} - -stage('UploadArtifactsIntoNexus'){ -sh "${mavenHome}/bin/mvn clean deploy" -} - -stage('DeployAppIntoTomcatServer'){ -sshagent(['2d6c465d-3f2c-4356-83b4-6c4928ec54c6']) { - sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.26.193:/opt/apache-tomcat-9.0.75/webapps/" -} -} -*/ - - -} diff --git a/JenkinsfileAugBacth2022 b/JenkinsfileAugBacth2022 deleted file mode 100644 index 705a8bca1e..0000000000 --- a/JenkinsfileAugBacth2022 +++ /dev/null @@ -1,84 +0,0 @@ -@Library('sharedlibsmss') _ -node{ - -try{ - - sendSlackNotifications('STARTED') - def mavenHome = tool name: 'maven3.8.6' - - echo "The JobName is: ${env.JOB_NAME}" - echo "The node name is: ${env.NODE_NAME}" - echo "The build number is: ${env.BUILD_NUMBER}" - - properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), [$class: 'JobLocalConfiguration', changeReasonComment: ''], pipelineTriggers([pollSCM('* * * * *')])]) - - - stage('CheckOutCode'){ - git branch: 'development', credentialsId: '1ed3c65b-4e6a-46ae-9e15-56aab257dac5', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git' - } - - stage('Build'){ - sh "${mavenHome}/bin/mvn package" - } - - /* - stage('ExecuteSoanrQubeReport') - { - sh "${mavenHome}/bin/mvn clean sonar:sonar" - } - - stage('UploadArtifactsIntoNexus') - { - sh "${mavenHome}/bin/mvn clean deploy" - } - - stage('DeployAppIntoTomcatServer'){ - sshagent(['ed3c425a-5ed2-4384-99c1-12cc22911ec4']) { - sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.42.12:/opt/apache-tomcat-9.0.67/webapps/" - } - } - */ - }//try closing - catch(e){ - currentBuild.result="FAILURE" - throw e - }//catch closing - finally{ - sendSlackNotifications(currentBuild.result) - } -} //Node closing - -/* -//Code Snippet for sending slack notifications. - -def slackNotifications(String buildStatus = 'STARTED') { - // build status of null means successful - buildStatus = buildStatus ?: 'SUCCESS' - //buildStatus = buildStatus ? "SUCCESS":"FAILURE" - - // Default values - def colorName = 'RED' - def colorCode = '#FF0000' - def subject = "${buildStatus}: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'" - def summary = "${subject} (${env.BUILD_URL})" - - // Override default values based on build status - if (buildStatus == 'STARTED') { - colorName = 'ORANGE' - colorCode = '#FFA500' - } else if (buildStatus == 'SUCCESS') { - colorName = 'GREEN' - colorCode = '#00FF00' - } else { - colorName = 'RED' - colorCode = '#FF0000' - } - - // Send notifications - slackSend (color: colorCode, message: summary, channel: "#walmart") -} - -*/ - - - diff --git a/JenkinsfileFeb7.30Batch b/JenkinsfileFeb7.30Batch deleted file mode 100644 index 8267a351ac..0000000000 --- a/JenkinsfileFeb7.30Batch +++ /dev/null @@ -1,35 +0,0 @@ -node{ - - echo "The Job name is: ${JOB_NAME}" -echo "The buils number is: ${BUILD_NUMBER}" -echo "The node name is : ${NODE_NAME}" - -properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), [$class: 'JobLocalConfiguration', changeReasonComment: ''], pipelineTriggers([pollSCM('* * * * *')])]) - -def mavenHome = tool name: 'maven3.8.8' - -stage('CheckoutCode'){ -git branch: 'development', credentialsId: '4768a632-7cb1-4a54-96e5-816d16a40c7f', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git' -} - -stage('Build'){ -sh "${mavenHome}/bin/mvn clean package" -} - -/* -stage('ExecuteSonarQubeReport'){ -sh "${mavenHome}/bin/mvn clean sonar:sonar" -} - -stage('UploadArtifactsIntoNexus'){ -sh "${mavenHome}/bin/mvn clean deploy" -} - -stage('DeployAppintoTomcat'){ -sshagent(['a2296f55-cf3b-4b3f-a5b5-17b11d8b83f2']) { - sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.44.186:/opt/apache-tomcat-9.0.73/webapps/" -} -} -*/ - -} diff --git a/JenkinsfileJan2024 b/JenkinsfileJan2024 deleted file mode 100644 index 6e81fdab1e..0000000000 --- a/JenkinsfileJan2024 +++ /dev/null @@ -1,93 +0,0 @@ -pipeline{ - -agent any - -tools{ -maven 'maven3.9.6' -} - -echo "The Job name is: ${env.JOB_NAME}" -echo "The Nod ename is: ${env.NODE_NAME}" -echo "The Build Number is: ${env.BUILD_NUMBER}" -echo "The Jenkins Home directory is: ${JENKINS_HOME}" - - -//Checkout code -stages{ - stage('CheckOuteCode'){ - steps{ - sendSlackNotifications("STARTED") - git branch: 'development', credentialsId: 'f4d44680-6f7c-4889-b836-5ce7015057f8', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git' - } - } - //Build - stage('Build'){ - steps{ - sh "mvn clean package" - } - } - /* - //Execute SonarQube Report - stage('ExecuteSonarQubeReport'){ - steps{ - sh "mvn clean sonar:sonar" - } - } - - // Upload Artifcats into Nexus - stage('UploadArtifcatsIntoNexus'){ - steps{ - sh "mvn clean deploy" - } - } - -//Deploy App into Tomcat Server -stage('DeployAppIntoTomcat'){ - steps{ - sshagent(['ea56a0ef-94e7-43c1-99e3-d7e0947043a3']) { - sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.1.56:/opt/apache-tomcat-9.0.86/webapps/" -} -} - } -*/ -}//stages closing - -post { - success { - sendSlackNotifications(currentBuild.result) - } - failure { - sendSlackNotifications(currentBuild.result) - } -} -}//pipeline closing - - -def sendSlackNotifications(String buildStatus = 'STARTED') { - // build status of null means successful - buildStatus = buildStatus ?: 'SUCCESS' - - // Default values - def colorName = 'RED' - def colorCode = '#FF0000' - def subject = "${buildStatus}: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'" - def summary = "${subject} (${env.BUILD_URL})" - - // Override default values based on build status - if (buildStatus == 'STARTED') { - colorName = 'YELLOW' - colorCode = '#FFFF00' - } else if (buildStatus == 'SUCCESS') { - colorName = 'GREEN' - colorCode = '#00FF00' - } else { - colorName = 'RED' - colorCode = '#FF0000' - } - - // Send notifications - slackSend (color: colorCode, message: summary, channel: "citibank-project") -} - - - diff --git a/JenkinsfileJune2023 b/JenkinsfileJune2023 deleted file mode 100644 index b8c25771aa..0000000000 --- a/JenkinsfileJune2023 +++ /dev/null @@ -1,37 +0,0 @@ -node{ - - -echo "Jenkins Home dir is: ${env.JENKINS_HOME}" -echo "Job name is: ${env.JOB_NAME}" -echo "Build number is: ${env.BUILD_NUMBER}" - -//properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), [$class: 'RebuildSettings', autoRebuild: false, rebuildDisabled: false], [$class: 'JobLocalConfiguration', changeReasonComment: ''], pipelineTriggers([pollSCM('* * * * *')])]) - - -def mavenHome=tool name: 'maven3.9.3' - -stage('CheckOutCode'){ -git branch: 'development', credentialsId: 'c4900e7a-ccd3-4a5a-8604-b81f52bdc0f2', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git' -} - -stage('Build'){ -sh "${mavenHome}/bin/mvn clean package" -} -/* -stage('ExecuteSonarQubeReport'){ -sh "${mavenHome}/bin/mvn clean sonar:sonar" -} - -stage('UploadArtifactsInotNexus'){ -sh "${mavenHome}/bin/mvn clean deploy" -} - - -stage('DeploAppIntoTomcatServer'){ -sshagent(['331ae6af-906c-4d4f-8317-0379a46b437e']) { - sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.2.79:/opt/apache-tomcat-9.0.76/webapps/" -} -} -*/ - -} diff --git a/JenkinsfileMarch2023 b/JenkinsfileMarch2023 deleted file mode 100644 index 926390284e..0000000000 --- a/JenkinsfileMarch2023 +++ /dev/null @@ -1,39 +0,0 @@ -node{ - - -properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), [$class: 'JobLocalConfiguration', changeReasonComment: ''], pipelineTriggers([pollSCM('* * * * *')])]) - -def mavenHome = tool name: 'maven3.9.1' - -echo "The Job name is: ${JOB_NAME} " -echo "The Node name is: ${NODE_NAME}" -echo "The Build Number is: ${BUILD_NUMBER}" -echo "Jenkins Home path is: ${JENKINS_HOME}" - - -stage('CheckoutCode'){ -git branch: 'development', credentialsId: 'aaa8e2c0-226a-40ba-85eb-259762d67c15', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git' -} - -stage('Build') -{ -sh "${mavenHome}/bin/mvn clean package" -} - - /* -stage('SonarQubeReport'){ -sh "${mavenHome}/bin/mvn clean sonar:sonar" -} - -stage('UploadArtifactsIntoNexus'){ -sh "${mavenHome}/bin/mvn clean deploy" -} - -stage('DeployAppIntoTomcat'){ -sshagent(['dd085870-ab36-4a86-9f5b-a915e179d45d']) { - sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.40.86:/opt/apache-tomcat-9.0.73/webapps/" -} -} -*/ - -}//node closing diff --git a/JenkinsfileMarchdp b/JenkinsfileMarchdp deleted file mode 100644 index 0918280faa..0000000000 --- a/JenkinsfileMarchdp +++ /dev/null @@ -1,103 +0,0 @@ -pipeline{ - -agent any - -parameters { - choice choices: ['master', 'development', 'stage', 'uat'], description: 'Select the Branch Name', name: 'BranchName' - string defaultValue: 'Mithun Software Solutions', name: 'PersonName' -} - - -tools{ -maven 'maven3.9.1' -} - -options { - buildDiscarder logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5') - timestamps() -} - - -triggers { - pollSCM('* * * * * ') -} - - -stages{ - stage('CheckoutCode'){ - steps{ - sendSlackNotifications('STARTED') - git branch: "${params.BranchName}", credentialsId: 'aaa8e2c0-226a-40ba-85eb-259762d67c15', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git' - } - } - -stage('Build'){ -steps{ -sh "mvn clean package" -} -} -/* -//Execute SonarQube Report -stage('ExecuteSonarQubeReport'){ -steps{ -sh "mvn clean sonar:sonar" -} -} - -//UploadArtifactsIntoNexus -stage('ArtifactsIntoNexus'){ -steps{ -sh "mvn clean deploy" -} -} - -//DeployApplication into TOmcat Server -stage('DeploApp'){ -steps{ -sshagent(['dd085870-ab36-4a86-9f5b-a915e179d45d']) { - sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.40.86:/opt/apache-tomcat-9.0.73/webapps/" -} -} -} -*/ - -}//stages closing -post { - success { - sendSlackNotifications(currentBuild.result) - } - failure { - sendSlackNotifications(currentBuild.result) - } -} - -}//pipeline closing - -//Function for slack notifications -def sendSlackNotifications(String buildStatus = 'STARTED') { - // build status of null means successful - buildStatus = buildStatus ?: 'SUCCESS' - - // Default values - def colorName = 'RED' - def colorCode = '#FF0000' - def subject = "${buildStatus}: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'" - def summary = "${subject} (${env.BUILD_URL})" - - // Override default values based on build status - if (buildStatus == 'STARTED') { - color = 'YELLOW' - colorCode = '#FFFF00' - } else if (buildStatus == 'SUCCESS') { - colorName = 'GREEN' - colorCode = '#00FF00' - } else { - colorName = 'RED' - colorCode = '#FF0000' - } - - // Send notifications - slackSend (color: colorCode, message: summary, channel: '#citibank') -} - - diff --git a/JenkinsfileOctBatch2022 b/JenkinsfileOctBatch2022 deleted file mode 100644 index f48a667761..0000000000 --- a/JenkinsfileOctBatch2022 +++ /dev/null @@ -1,84 +0,0 @@ -node{ - -try{ - - def mavenHome = tool name: 'maven3.8.5' - - echo "The Job name is: ${env.JOB_NAME}" - echo "The Build numebr is: ${env.BUILD_NUMBER}" - echo "The node name is: ${env.NODE_NAME}" - -properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), [$class: 'JobLocalConfiguration', changeReasonComment: ''], pipelineTriggers([pollSCM('* * * * *')])]) - - -//Checkout Code State -stage('CheckoutCode'){ -sendSlackNotifications("STARTED") -git branch: 'development', credentialsId: '7c0bd52e-8700-404b-a704-444a4f556b2f', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git' -} - -//Build -stage('Build'){ -sh "${mavenHome}/bin/mvn clean package" -} - - /* -//Execute SonarQube Report -stage('ExecuteSonarQubeReport'){ -sh "${mavenHome}/bin/mvn sonar:sonar" -} - -//UploadArtifcats Into Nexus -stage('UploadArtifcatsIntoNexus'){ -sh "${mavenHome}/bin/mvn deploy" -} - -//Deploy App into Tomcat Server -stage('DeployApp'){ -sshagent(['e83477fc-0cee-45ee-a412-92e2240a7256']) { - sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.40.1:/opt/apache-tomcat-9.0.68/webapps/" -} -} -*/ - -}//try closing -catch(e){ -currentBuild.result = "FAILURE" -} -finally{ -sendSlackNotifications(currentBuild.result) -} - -}//node closing - -//Function for slack notifications - -def sendSlackNotifications(String buildStatus = 'STARTED') { - // build status of null means successful - buildStatus = buildStatus ?: 'SUCCESS' - - // Default values - def colorName = 'RED' - def colorCode = '#FF0000' - def subject = "${buildStatus}: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'" - def summary = "${subject} (${env.BUILD_URL})" - - // Override default values based on build status - if (buildStatus == 'STARTED') { - colorName = 'ORANGE' - colorCode = '#FFA500' - } else if (buildStatus == 'SUCCESS') { - colorName = 'GREEN' - colorCode = '#00FF00' - } else { - colorName = 'RED' - colorCode = '#FF0000' - } - - // Send notifications - slackSend (color: colorCode, message: summary) -} - - - - diff --git a/JenkinsfileSepBatch b/JenkinsfileSepBatch deleted file mode 100644 index 861f541301..0000000000 --- a/JenkinsfileSepBatch +++ /dev/null @@ -1,52 +0,0 @@ -node('wallmart-node'){ - - -//echo "GitHub BranhName ${env.BRANCH_NAME}" - //echo "Jenkins Job Number ${env.BUILD_NUMBER}" - echo "Jenkins Node Name ${env.NODE_NAME}" - - echo "Jenkins Home ${env.JENKINS_HOME}" - echo "Jenkins URL ${env.JENKINS_URL}" - echo "JOB Name ${env.JOB_NAME}" - - -def mavenHome = tool name: "maven3.8.3" - -properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), [$class: 'JobLocalConfiguration', changeReasonComment: ''], pipelineTriggers([pollSCM('* * * * *')])]) - - - -stage('CheckOutCode'){ -git branch: 'development', credentialsId: '9aad10da-e742-413a-a2f6-ce6a8b007f70', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git' -} - -stage('Build'){ -sh "${mavenHome}/bin/mvn clean package" -} -/* -stage('ExecuteSOnarQubeReport'){ -sh "mvn sonar:sonar" -} - -stage('UploadArtifactsIntoNexusRepo'){ -sh "mvn deploy" -} - -stage('DeployAppintoTomcatServer'){ -sshagent(['dd147e39-1f55-4554-9700-b10dc494211f']) { - sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@13.233.201.155:/opt/apache-tomcat-9.0.54/webapps/" -} -} - -stage('SendEmailNotification'){ - -mail bcc: '', body: '''Build Over.. - -Regards, -Mithun Software Solutions, -9980923226''', cc: 'devopstrainingblr@gmail.com', from: '', replyTo: '', subject: 'Build over!...', to: 'devopstrainingblr@gmail.com' -} - -*/ - -} diff --git a/JenkinsfileSepBatch2022 b/JenkinsfileSepBatch2022 deleted file mode 100644 index 40fffe89a3..0000000000 --- a/JenkinsfileSepBatch2022 +++ /dev/null @@ -1,75 +0,0 @@ -node{ - -def mavenHome = tool name: "maven3.8.5" - -echo "Build number: ${env.BUILD_NUMBER}" -//echo "Job name is: ${env.JOB_NAME}" -echo "Node name is: ${env.NODE_NAME}" - - -properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), [$class: 'JobLocalConfiguration', changeReasonComment: ''], pipelineTriggers([pollSCM('* * * * *')])]) - -try{ -sendslacknotifications("STARTED") -stage('CheckoutCode'){ -git branch: 'development', credentialsId: 'd282f55b-fad5-4318-87d4-7ae8a1bf92b2', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git' -} - -stage('Build'){ -sh "${mavenHome}/bin/mvn clean package" -} - - /* -stage('ExecuteSonarQubeReport'){ -sh "${mavenHome}/bin/mvn sonar:sonar" -} - -stage('UploadArtifactintoNexus') -{ -sh "${mavenHome}/bin/mvn deploy" -} - -stage('DeployAppIntoTomcatServer'){ -sshagent(['edb68cd9-21f4-4bb5-a6ae-2bd936f65b53']) { - sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.16.144:/opt/apache-tomcat-9.0.68/webapps/" -} -} -*/ -}//try closing -catch(e){ -currentBuild.result = "FAILURE" -}//catch block closing -finally{ -sendslacknotifications(currentBuild.result) -}//finally closing - -}//node closing - - -def sendslacknotifications(String buildStatus = 'STARTED') { - // build status of null means successful - buildStatus = buildStatus ?: 'SUCCESSFUL' - - // Default values - def colorName = 'RED' - def colorCode = '#FF0000' - def subject = "${buildStatus}: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'" - def summary = "${subject} (${env.BUILD_URL})" - - // Override default values based on build status - if (buildStatus == 'STARTED') { - colorName = 'YELLOW' - colorCode = '#FFFF00' - } else if (buildStatus == 'SUCCESSFUL') { - colorName = 'GREEN' - colorCode = '#00FF00' - } else { - colorName = 'RED' - colorCode = '#FF0000' - } - - // Send notifications - slackSend (color: colorCode, message: summary, channel: "#walmart") -} - - diff --git a/Jenkinsparalleljob b/Jenkinsparalleljob deleted file mode 100644 index 9277f18e6f..0000000000 --- a/Jenkinsparalleljob +++ /dev/null @@ -1,39 +0,0 @@ -pipeline{ - - agent any - - tools{ - maven 'maven3.8.5' - } - -stages{ -//Get the code from GitHub - stage('CheckoutCode'){ - steps{ - - git branch: 'master', credentialsId: '4368c281-f352-4495-89c1-730c9742fca9', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git' - } - } - - //Run Junt Test cases & Do the Build - - stage('RunUnitTestcases&Build'){ - steps{ - parallel( - RunUnitTestCases: { - sh "mvn test" - }, - - Build: { - sh "mvn clean package" - } - - ) - } - } - - - -}// Stages Closing - -}// Pipelien CLosing diff --git a/Jenkinspipeline b/Jenkinspipeline deleted file mode 100644 index 80cb19bba0..0000000000 --- a/Jenkinspipeline +++ /dev/null @@ -1,38 +0,0 @@ -node{ - -def mavenHome = tool name: "maven3.8.6" - -echo "Jenkins url is: ${env.JENKINS_URL}" -echo "Node Name is: ${env.NODE_NAME}" -echo "Job Name is: ${env.JOB_NAME}" - - - - -properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), [$class: 'JobLocalConfiguration', changeReasonComment: ''], pipelineTriggers([pollSCM('* * * * *')])]) - - - -stage('CheckOutCode'){ -git branch: 'development', credentialsId: '166c70a2-1df5-4993-a566-0a795862da8c', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git' -} - -stage('Build'){ -sh "${mavenHome}/bin/mvn clean package" -} - -stage('ExecuteSonarQubeReport'){ -sh "${mavenHome}/bin/mvn clean sonar:sonar" -} - -stage('UploadArtifcatsIntoArtifactoryRepo'){ -sh "${mavenHome}/bin/mvn clean deploy" -} - -stage('DeployAppIntoTomcatServer'){ -sshagent(['dc292b7a-3b39-4630-9fc3-1b806b54412c']) { - sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.7.80:/opt/apache-tomcat-9.0.65/webapps/" -} -} - -} diff --git a/JenkinswithAnsible b/JenkinswithAnsible deleted file mode 100644 index 0161f77d76..0000000000 --- a/JenkinswithAnsible +++ /dev/null @@ -1,49 +0,0 @@ -pipeline{ - -agent { -label 'ansible' -} - -environment { - AWS_EC2_PRIVATE_KEY=credentials('ec2-private-key') - } - -tools{ -maven 'maven3.8.2' - -} - - -options{ -timestamps() -buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')) -} - -stages{ - - stage('CheckOutCode'){ - steps{ - git branch: 'master', credentialsId: '957b543e-6f77-4cef-9aec-82e9b0230975', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git' - - } - } - - stage('Build'){ - steps{ - sh "mvn clean package" - } - } - -stage('DeployApp'){ - steps{ - //List the dymaic inventory just for verification - sh "ansible-inventory --graph -i aws_ec2.yaml" - //Run playbook using dynamic inventory & limit exuection only fo tomcatservers. - sh "ansible-playbook -i aws_ec2.yaml appdeploy.yaml -u ec2-user --private-key=$AWS_EC2_PRIVATE_KEY --limit tomcatservers --ssh-common-args='-o StrictHostKeyChecking=no'" - } -} - - -}//Stages Closing - -} diff --git a/appdeploy.yaml b/appdeploy.yaml index e8e3a42f8b..ae4e3253df 100644 --- a/appdeploy.yaml +++ b/appdeploy.yaml @@ -29,4 +29,4 @@ uri: url: "http://{{ ansible_host }}:8080/maven-web-application/" status_code: 200 -... +... \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 6c5aa3ef90..d58b32aab8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,4 +8,4 @@ services: networks: - mavenappbridge networks: - mavenappbridge: + mavenappbridge: \ No newline at end of file From 1702d1ecf38288656b93102eada47358166e9ed4 Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Mon, 14 Jul 2025 11:01:27 +0530 Subject: [PATCH 26/67] Created Jenkinsfile for Docker --- Jenkinsfile_Docker | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 Jenkinsfile_Docker diff --git a/Jenkinsfile_Docker b/Jenkinsfile_Docker new file mode 100644 index 0000000000..e69de29bb2 From ba14a5260efcef0ca1b1265367f36abed4edd6bd Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Mon, 14 Jul 2025 11:04:00 +0530 Subject: [PATCH 27/67] Created Jenkinsfile for Docker --- Jenkinsfile_Docker => JenkinsFileDocker | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Jenkinsfile_Docker => JenkinsFileDocker (100%) diff --git a/Jenkinsfile_Docker b/JenkinsFileDocker similarity index 100% rename from Jenkinsfile_Docker rename to JenkinsFileDocker From 93f5c26fcd3619166aa1a099a85d2def66057d79 Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Tue, 15 Jul 2025 06:50:31 +0530 Subject: [PATCH 28/67] Working on Jenkinsfile for Docker --- JenkinsFileDocker | 15 +++++++++++++++ .../com/mt/services/EmployeeService.class | Bin 0 -> 1595 bytes 2 files changed, 15 insertions(+) create mode 100644 target/classes/com/mt/services/EmployeeService.class diff --git a/JenkinsFileDocker b/JenkinsFileDocker index e69de29bb2..d38d4cd806 100644 --- a/JenkinsFileDocker +++ b/JenkinsFileDocker @@ -0,0 +1,15 @@ +pipeline +{ + agent any + + stages + { + stage('Checkout Code to Jenkins from GitHub') + { + steps() + { + git branch: 'master', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git' + } + } + } +} \ No newline at end of file diff --git a/target/classes/com/mt/services/EmployeeService.class b/target/classes/com/mt/services/EmployeeService.class new file mode 100644 index 0000000000000000000000000000000000000000..bd7b4db3ed9ddb461bbd1ad91191411ba2ff93e7 GIT binary patch literal 1595 zcmb7EZBH9V5PlX6K8TwTL(AdHBjep=g8d&&9sdbf7M z=l-02X}=^=EAwE>PKav$M-c^qv18R!GE#9%?$wW}VFiXC=~&yx0)w-2M*@XS)1*-hVx)v2 z3=3SU>X>%BojRq5sveO*xoR3JI#Q{2=l;)vZR<>6x_SM1`X9S2(#<*;eeb>1yvPwr>)!`1=wrL7H{NM=rMNV+= z>Gq+(gAcgx%ei5iCzT>@Ftqnd;^{Mr>lg_z#k|?&d;?6g-7{_5-8ej?Mmsir{|2$VKe6mjuFA9#+d^L{?hVt04Y%1G4(n_3a~7&c0j7>oaA6N(>mN>#M%5IsYaU>^WhFfu1BFY z;l43xxKAdDXmK&X7XlaeBgL~8wkeGCOV0mGp0ORBg)wuYM`7aBF8PNgtl}$yz#7jv zfr;5OnOICc-vwsQWxO8@_L`FKmcaSb)E^TrjhnO@QP>u8W_U`UQ6D9_mB7lT*M`IHO5kbHJ35Y(hYVy!QYi1 zATnIV$Gj7+VG^IP)&=^7?+o$2{s*qVc#E5Bg~>wsRyllwPoJ~&d3m-k-7U}erN#16 zU%Fpj@zNVS_?4Xuz=6D#JHCby4l~YyZZb_~7|JqB6-?#eSA5V@@atG(ol9;VkMK2n ja?)db;~s2g*tdKt@ZXI*%4VKina^8%p5S{v!R>zl(Il_b literal 0 HcmV?d00001 From 2c4a17558cd33119542003c968310f427261055c Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Tue, 15 Jul 2025 06:53:28 +0530 Subject: [PATCH 29/67] Working on Jenkinsfile for Docker --- JenkinsFileDocker | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/JenkinsFileDocker b/JenkinsFileDocker index d38d4cd806..92aa3cb7a4 100644 --- a/JenkinsFileDocker +++ b/JenkinsFileDocker @@ -2,6 +2,11 @@ pipeline { agent any + tools + { + maven 'Maven_3.9.7' + } + stages { stage('Checkout Code to Jenkins from GitHub') @@ -11,5 +16,13 @@ pipeline git branch: 'master', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git' } } + + stage('Build Artifact using Maven') + { + steps() + { + sh 'mvn clean package' + } + } } } \ No newline at end of file From 8160a0792bec9e9accddc681f2a8ec740ec176a1 Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Tue, 15 Jul 2025 06:59:48 +0530 Subject: [PATCH 30/67] Working on Jenkinsfile for Docker --- JenkinsFileDocker | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/JenkinsFileDocker b/JenkinsFileDocker index 92aa3cb7a4..034fd2093a 100644 --- a/JenkinsFileDocker +++ b/JenkinsFileDocker @@ -7,6 +7,11 @@ pipeline maven 'Maven_3.9.7' } + environment + { + buildNumber = "${BUILD_NUMBER}" + } + stages { stage('Checkout Code to Jenkins from GitHub') @@ -24,5 +29,13 @@ pipeline sh 'mvn clean package' } } + + stage("Build Docker Image") + { + steps() + { + sh 'docker build -t mithuntechnologies/logindockerjenkins:${buildNumber} .' + } + } } } \ No newline at end of file From cb7107b5b80f942c424087d943973eee4366f89d Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Tue, 15 Jul 2025 07:06:30 +0530 Subject: [PATCH 31/67] Working on Jenkinsfile for Docker --- JenkinsFileDocker | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/JenkinsFileDocker b/JenkinsFileDocker index 034fd2093a..0a4b6e535d 100644 --- a/JenkinsFileDocker +++ b/JenkinsFileDocker @@ -37,5 +37,17 @@ pipeline sh 'docker build -t mithuntechnologies/logindockerjenkins:${buildNumber} .' } } + + stage("Authenticate and Push Docker Image to Docker Hub") + { + steps() + { + withCredentials([string(credentialsId: 'Docker_Hub_Password', variable: 'Docker_Hub_Password')]) + { + sh 'docker login -u mithuntechnologies -p ${Docker_Hub_Password}' + } + sh 'docker push mithuntechnologies/logindockerjenkins:${buildNumber}' + } + } } } \ No newline at end of file From 0560c5c8c61998763d2de71649ae0a8a703655b7 Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Tue, 15 Jul 2025 07:11:00 +0530 Subject: [PATCH 32/67] Working on Jenkinsfile for Docker --- JenkinsFileDocker | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/JenkinsFileDocker b/JenkinsFileDocker index 0a4b6e535d..bebe006082 100644 --- a/JenkinsFileDocker +++ b/JenkinsFileDocker @@ -49,5 +49,13 @@ pipeline sh 'docker push mithuntechnologies/logindockerjenkins:${buildNumber}' } } + + stage('Remove Docker Image from Jenkins Locally') + { + steps() + { + sh 'docker rmi -f mithuntechnologies/logindockerjenkins:${buildNumber}' + } + } } } \ No newline at end of file From 0b56680b17ba95c306477b3ef1978a54a508815d Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Tue, 15 Jul 2025 07:20:49 +0530 Subject: [PATCH 33/67] Working on Jenkinsfile for Docker --- JenkinsFileDocker | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/JenkinsFileDocker b/JenkinsFileDocker index bebe006082..fb7fb59c40 100644 --- a/JenkinsFileDocker +++ b/JenkinsFileDocker @@ -57,5 +57,17 @@ pipeline sh 'docker rmi -f mithuntechnologies/logindockerjenkins:${buildNumber}' } } + + stage('Deploy Application to Deployment Server') + { + steps() + { + sshagent(['DeploymentServer_SSH']) + { + sh "ssh -o StrictHostKeyChecking=no ubuntu@3.108.196.56 docker rm -f mavenwebapplication || true" + sh "ssh -o StrictHostKeyChecking=no ubuntu@3.108.196.56 docker run -d --name mavenwebapplication -p 8080:8080 mithuntechnologies/logindockerjenkins:$Build_Number" + } + } + } } } \ No newline at end of file From 863d06403c06c5beafa557a8ce6f4a740efc98e4 Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Tue, 15 Jul 2025 07:25:23 +0530 Subject: [PATCH 34/67] Working on Jenkinsfile for Docker --- src/main/webapp/jsps/home.jsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index e340db6f9e..38eaf9b6e5 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -9,7 +9,7 @@ -

Welcome to Mithun Technologies

+

Welcome to Mithun Technologies - DevOps Best Course

Phone Number: +91 9980923216

Mithun Technologies is a Very Good Training Center for DevOps, Cloud, Kubernetes and Terraform

From 3ec680e741cbd1b7006c88a4df16c14c055c2d8f Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Tue, 15 Jul 2025 07:28:54 +0530 Subject: [PATCH 35/67] Working on Jenkinsfile for Docker --- src/main/webapp/jsps/home.jsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index 38eaf9b6e5..e340db6f9e 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -9,7 +9,7 @@ -

Welcome to Mithun Technologies - DevOps Best Course

+

Welcome to Mithun Technologies

Phone Number: +91 9980923216

Mithun Technologies is a Very Good Training Center for DevOps, Cloud, Kubernetes and Terraform

From 0197ba6a54b11b9258a51d7ea969eb0cb3705f7f Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Tue, 15 Jul 2025 09:09:30 +0530 Subject: [PATCH 36/67] Working on Jenkinsfile for Docker --- JenkinsFileDocker | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/JenkinsFileDocker b/JenkinsFileDocker index fb7fb59c40..e3f8f4b5e9 100644 --- a/JenkinsFileDocker +++ b/JenkinsFileDocker @@ -34,7 +34,7 @@ pipeline { steps() { - sh 'docker build -t mithuntechnologies/logindockerjenkins:${buildNumber} .' + sh 'docker build -t mithuntechnologies/maven-web-application:${buildNumber} .' } } @@ -46,7 +46,7 @@ pipeline { sh 'docker login -u mithuntechnologies -p ${Docker_Hub_Password}' } - sh 'docker push mithuntechnologies/logindockerjenkins:${buildNumber}' + sh 'docker push mithuntechnologies/maven-web-application:${buildNumber}' } } @@ -54,7 +54,7 @@ pipeline { steps() { - sh 'docker rmi -f mithuntechnologies/logindockerjenkins:${buildNumber}' + sh 'docker rmi -f mithuntechnologies/maven-web-application:${buildNumber}' } } @@ -65,7 +65,7 @@ pipeline sshagent(['DeploymentServer_SSH']) { sh "ssh -o StrictHostKeyChecking=no ubuntu@3.108.196.56 docker rm -f mavenwebapplication || true" - sh "ssh -o StrictHostKeyChecking=no ubuntu@3.108.196.56 docker run -d --name mavenwebapplication -p 8080:8080 mithuntechnologies/logindockerjenkins:$Build_Number" + sh "ssh -o StrictHostKeyChecking=no ubuntu@3.108.196.56 docker run -d --name mavenwebapplication -p 8080:8080 mithuntechnologies/maven-web-application:$Build_Number" } } } From 432abf9983a9236d49d3a5537aca129051c7b579 Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Tue, 15 Jul 2025 09:12:02 +0530 Subject: [PATCH 37/67] Working on Jenkinsfile for Docker --- src/main/webapp/jsps/home.jsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index e340db6f9e..87acb204fd 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -11,7 +11,7 @@

Welcome to Mithun Technologies

Phone Number: +91 9980923216

-

Mithun Technologies is a Very Good Training Center for DevOps, Cloud, Kubernetes and Terraform

+

Mithun Technologies is a Very Good Training Center for DevOps, Cloud, Docker, Kubernetes and Terraform

Trainer Name: Bhaskar Reddy Lacchannagari

From 8332cf76cbddc88befb275db7614c68e039a8bc7 Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Tue, 15 Jul 2025 09:16:06 +0530 Subject: [PATCH 38/67] Working on Jenkinsfile for Docker --- src/main/webapp/jsps/home.jsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index 87acb204fd..393dcd0a40 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -11,7 +11,7 @@

Welcome to Mithun Technologies

Phone Number: +91 9980923216

-

Mithun Technologies is a Very Good Training Center for DevOps, Cloud, Docker, Kubernetes and Terraform

+

Mithun Technologies is a Very Good Training Center for DevOps, Cloud, Docker, Kubernetes, GitOps, ArgoCD, CICD, Terraform and Amazon Web Services

Trainer Name: Bhaskar Reddy Lacchannagari

From 5f3a6a068eba9394325da8a132ffa94cc7594f8d Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Tue, 15 Jul 2025 09:22:16 +0530 Subject: [PATCH 39/67] Working on Jenkinsfile for Docker --- src/main/webapp/jsps/home.jsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index 393dcd0a40..8b55b1b05f 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -11,7 +11,7 @@

Welcome to Mithun Technologies

Phone Number: +91 9980923216

-

Mithun Technologies is a Very Good Training Center for DevOps, Cloud, Docker, Kubernetes, GitOps, ArgoCD, CICD, Terraform and Amazon Web Services

+

Mithun Technologies is a Very Good Training Center for AWS DevOps, Docker, Kubernetes and Terraform

Trainer Name: Bhaskar Reddy Lacchannagari

From 33527885d35b8d351852fb533aa5bb35c323b02c Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Tue, 15 Jul 2025 09:35:16 +0530 Subject: [PATCH 40/67] Working on Jenkinsfile for Docker --- src/main/webapp/jsps/home.jsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index 8b55b1b05f..f72d7ce10e 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -11,7 +11,7 @@

Welcome to Mithun Technologies

Phone Number: +91 9980923216

-

Mithun Technologies is a Very Good Training Center for AWS DevOps, Docker, Kubernetes and Terraform

+

Mithun Technologies is a Very Good Training Center for Learning AWS DevOps, Jenkins, Docker, Kubernetes, GitOps, ArgoCD, Terraform and Amazon Web Services

Trainer Name: Bhaskar Reddy Lacchannagari

From 5efe53ce1b63554eb7b68d47cf6c2ac5e8a1dd3e Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Tue, 23 Sep 2025 05:46:17 +0530 Subject: [PATCH 41/67] Updated Project Code --- MavenWebApplication.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MavenWebApplication.yaml b/MavenWebApplication.yaml index 39ad0366fb..f5a47eb590 100644 --- a/MavenWebApplication.yaml +++ b/MavenWebApplication.yaml @@ -34,7 +34,7 @@ metadata: name: webpage-service namespace: production spec: - type: NodePort + type: LoadBalancer selector: application: webpage ports: From 83b5a6ff9080fe0ae72305e7b8d5929ae499e66f Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Tue, 23 Sep 2025 06:16:21 +0530 Subject: [PATCH 42/67] Created JenkinsFile for Kubernetes --- JenkinsFileKubernetes | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 JenkinsFileKubernetes diff --git a/JenkinsFileKubernetes b/JenkinsFileKubernetes new file mode 100644 index 0000000000..16c0c9f59f --- /dev/null +++ b/JenkinsFileKubernetes @@ -0,0 +1,28 @@ +pipeline +{ + agent any + + tools + { + maven 'Maven_3.9.7' + } + + stages + { + stage('Checkout Code to Jenkins from GitHub') + { + steps() + { + git branch: 'master', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git' + } + } + + stage('Build Artifact using Maven') + { + steps() + { + sh 'mvn clean package' + } + } + } +} \ No newline at end of file From 93551afbe021b881a9bb9a96fb3d043cf945c7c5 Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Tue, 23 Sep 2025 06:21:47 +0530 Subject: [PATCH 43/67] Added Code for Docker Image Build --- JenkinsFileKubernetes | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/JenkinsFileKubernetes b/JenkinsFileKubernetes index 16c0c9f59f..9b8adf7cea 100644 --- a/JenkinsFileKubernetes +++ b/JenkinsFileKubernetes @@ -6,7 +6,12 @@ pipeline { maven 'Maven_3.9.7' } - + + environment + { + buildNumber = "${BUILD_NUMBER}" + } + stages { stage('Checkout Code to Jenkins from GitHub') @@ -24,5 +29,13 @@ pipeline sh 'mvn clean package' } } + + stage("Build Docker Image") + { + steps() + { + sh 'docker build -t 149536451818.dkr.ecr.ap-south-1.amazonaws.com/maven-web-application:${buildNumber} .' + } + } } } \ No newline at end of file From c5c3d5e0eedf42e59ee3395e6c1bee74fd9d89eb Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Tue, 23 Sep 2025 06:32:17 +0530 Subject: [PATCH 44/67] Added Jenkinsfile to Push Docker Image --- JenkinsFileKubernetes | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/JenkinsFileKubernetes b/JenkinsFileKubernetes index 9b8adf7cea..4f77f08aa9 100644 --- a/JenkinsFileKubernetes +++ b/JenkinsFileKubernetes @@ -37,5 +37,14 @@ pipeline sh 'docker build -t 149536451818.dkr.ecr.ap-south-1.amazonaws.com/maven-web-application:${buildNumber} .' } } + + stage("Authenticate and Push Docker Image to AWS ECR") + { + steps() + { + ss 'aws ecr get-login-password --region ap-south-1 | docker login --username AWS --password-stdin 149536451818.dkr.ecr.ap-south-1.amazonaws.com' + sh 'docker push 149536451818.dkr.ecr.ap-south-1.amazonaws.com/maven-web-application:${buildNumber}' + } + } } } \ No newline at end of file From 1bb2b4c8a0f9b23696310f8bb2521585e776d880 Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Tue, 23 Sep 2025 06:37:45 +0530 Subject: [PATCH 45/67] Added Jenkinsfile to Push Docker Image --- JenkinsFileKubernetes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFileKubernetes b/JenkinsFileKubernetes index 4f77f08aa9..74e42cad04 100644 --- a/JenkinsFileKubernetes +++ b/JenkinsFileKubernetes @@ -42,7 +42,7 @@ pipeline { steps() { - ss 'aws ecr get-login-password --region ap-south-1 | docker login --username AWS --password-stdin 149536451818.dkr.ecr.ap-south-1.amazonaws.com' + sh 'aws ecr get-login-password --region ap-south-1 | docker login --username AWS --password-stdin 149536451818.dkr.ecr.ap-south-1.amazonaws.com' sh 'docker push 149536451818.dkr.ecr.ap-south-1.amazonaws.com/maven-web-application:${buildNumber}' } } From 964a45cb5405e3dae133e347ecbc104bf1ab2dc5 Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Tue, 23 Sep 2025 06:41:33 +0530 Subject: [PATCH 46/67] Updated Jenkinsfile --- JenkinsFileKubernetes | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/JenkinsFileKubernetes b/JenkinsFileKubernetes index 74e42cad04..6f49365473 100644 --- a/JenkinsFileKubernetes +++ b/JenkinsFileKubernetes @@ -46,5 +46,13 @@ pipeline sh 'docker push 149536451818.dkr.ecr.ap-south-1.amazonaws.com/maven-web-application:${buildNumber}' } } + + stage('Remove Docker Image from Jenkins Locally') + { + steps() + { + sh 'docker rmi -f 149536451818.dkr.ecr.ap-south-1.amazonaws.com/maven-web-application:${buildNumber}' + } + } } } \ No newline at end of file From 5024f1707ab0ecfce3956fcd640375437c020c01 Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Tue, 23 Sep 2025 06:49:17 +0530 Subject: [PATCH 47/67] Updated Jenkinsfile --- JenkinsFileKubernetes | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/JenkinsFileKubernetes b/JenkinsFileKubernetes index 6f49365473..bbbfd13dce 100644 --- a/JenkinsFileKubernetes +++ b/JenkinsFileKubernetes @@ -30,7 +30,7 @@ pipeline } } - stage("Build Docker Image") + stage('Build Docker Image') { steps() { @@ -38,7 +38,7 @@ pipeline } } - stage("Authenticate and Push Docker Image to AWS ECR") + stage('Authenticate and Push Docker Image to AWS ECR') { steps() { @@ -54,5 +54,13 @@ pipeline sh 'docker rmi -f 149536451818.dkr.ecr.ap-south-1.amazonaws.com/maven-web-application:${buildNumber}' } } + + stage('Update Image Tag in Kubernetes Manifest') + { + steps() + { + sh "sed -i 's/Build_Tag/${buildNumber}/g' MavenWebApplication.yaml" + } + } } } \ No newline at end of file From 7261b07de6a2d08a016811a1b1f50674c9143db3 Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Tue, 23 Sep 2025 07:04:50 +0530 Subject: [PATCH 48/67] Updated Jenkinsfile --- JenkinsFileKubernetes | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/JenkinsFileKubernetes b/JenkinsFileKubernetes index bbbfd13dce..082054f908 100644 --- a/JenkinsFileKubernetes +++ b/JenkinsFileKubernetes @@ -62,5 +62,14 @@ pipeline sh "sed -i 's/Build_Tag/${buildNumber}/g' MavenWebApplication.yaml" } } + + stage("Deploy Application in AWS EKS Cluster") + { + steps() + { + sh 'kubectl delete deployment webpage-deployment -n production || true' + sh 'kubectl apply -f webpage-deployment' + } + } } } \ No newline at end of file From 35c450c4aba732c535b7355331e3d25c87018c7a Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Tue, 23 Sep 2025 07:08:34 +0530 Subject: [PATCH 49/67] Updated Manifest File --- MavenWebApplication.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MavenWebApplication.yaml b/MavenWebApplication.yaml index f5a47eb590..56c81b4a7d 100644 --- a/MavenWebApplication.yaml +++ b/MavenWebApplication.yaml @@ -23,7 +23,7 @@ spec: spec: containers: - name: webpage-container - image: mithuntechnologies/maven-web-application:1 + image: 149536451818.dkr.ecr.ap-south-1.amazonaws.com/maven-web-application:Build_Tag imagePullPolicy: Always ports: - containerPort: 8080 From b2771d19ce173c417d0129691ed4af61a93ab04e Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Tue, 23 Sep 2025 07:13:38 +0530 Subject: [PATCH 50/67] Updated Manifest File --- JenkinsFileKubernetes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFileKubernetes b/JenkinsFileKubernetes index 082054f908..4eb721d9bc 100644 --- a/JenkinsFileKubernetes +++ b/JenkinsFileKubernetes @@ -68,7 +68,7 @@ pipeline steps() { sh 'kubectl delete deployment webpage-deployment -n production || true' - sh 'kubectl apply -f webpage-deployment' + sh 'kubectl apply -f MavenWebApplication.yaml' } } } From be6e0d013b497cc0af68e051c13cd8439aa840bd Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Thu, 25 Sep 2025 19:03:20 +0530 Subject: [PATCH 51/67] Updated Project Code --- JenkinsFileKubernetes | 2 +- MavenWebApplication.yaml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/JenkinsFileKubernetes b/JenkinsFileKubernetes index 4eb721d9bc..940731a710 100644 --- a/JenkinsFileKubernetes +++ b/JenkinsFileKubernetes @@ -1,7 +1,7 @@ pipeline { agent any - + tools { maven 'Maven_3.9.7' diff --git a/MavenWebApplication.yaml b/MavenWebApplication.yaml index 56c81b4a7d..0469a03161 100644 --- a/MavenWebApplication.yaml +++ b/MavenWebApplication.yaml @@ -39,4 +39,5 @@ spec: application: webpage ports: - port: 80 - targetPort: 8080 \ No newline at end of file + targetPort: 8080 + \ No newline at end of file From 1994227663f4099d545f4868217486acf9ae6ee3 Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Thu, 25 Sep 2025 19:04:10 +0530 Subject: [PATCH 52/67] Updated Project Code --- MavenWebApplication.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MavenWebApplication.yaml b/MavenWebApplication.yaml index 0469a03161..56c81b4a7d 100644 --- a/MavenWebApplication.yaml +++ b/MavenWebApplication.yaml @@ -39,5 +39,4 @@ spec: application: webpage ports: - port: 80 - targetPort: 8080 - \ No newline at end of file + targetPort: 8080 \ No newline at end of file From 9af481402b6523b2a3eeb16e5911b275f66eda0a Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Fri, 26 Sep 2025 19:35:59 +0530 Subject: [PATCH 53/67] Create Jenkinsfile --- .github/workflows/maven.yml | 26 ------- .gitignore | 34 ++++++++- Jenkinsfile | 141 +++++++++++++++++++----------------- appdeploy.yaml | 32 -------- docker-compose.yml | 11 --- 5 files changed, 106 insertions(+), 138 deletions(-) delete mode 100644 .github/workflows/maven.yml delete mode 100644 appdeploy.yaml delete mode 100644 docker-compose.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml deleted file mode 100644 index 1f0ca1f937..0000000000 --- a/.github/workflows/maven.yml +++ /dev/null @@ -1,26 +0,0 @@ -# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven - -name: Java CI with Maven - -on: - push: - branches: [ master ] - pull_request: - branches: [ master,develop ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v2 - with: - java-version: '11' - distribution: 'adopt' - cache: maven - - name: Build with Maven - run: mvn -B package --file pom.xml diff --git a/.gitignore b/.gitignore index 105e8c0dea..1d0d95accd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,31 @@ -.classpath -.project -/.settings +#Operating System Files +*.DS_Store +Thumbs.db +*.sw? +.#* +*# +*~ +*.sublime-* + +#Build Artifacts +**/.gradle/ +**/build/ +**/target/ +**/bin/ +**/dependency-reduced-pom.xml + +#Eclipse Project Files +.metadata +.metadata/ +**/.classpath +**/.project +**/.settings/ + +#IntelliJ IDEA Files +**/*.iml +**/*.ipr +**/*.iws +**/*.idea + +#Visual Studio Code Files +**/.vscode/ diff --git a/Jenkinsfile b/Jenkinsfile index a264b82a31..36485c80bf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,75 +1,84 @@ -pipeline{ - -agent any - -tools{ -maven 'maven3.8.2' - -} - -triggers{ -pollSCM('* * * * *') -} - -options{ -timestamps() -buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')) -} - -stages{ - - stage('CheckOutCode'){ - steps{ - git branch: 'development', credentialsId: '957b543e-6f77-4cef-9aec-82e9b0230975', url: 'https://github.com/devopstrainingblr/maven-web-application-1.git' - - } - } +pipeline +{ + agent any - stage('Build'){ - steps{ - sh "mvn clean package" - } - } -/* - stage('ExecuteSonarQubeReport'){ - steps{ - sh "mvn clean sonar:sonar" - } + tools + { + maven 'Maven_3.8.2' } - stage('UploadArtifactsIntoNexus'){ - steps{ - sh "mvn clean deploy" + triggers + { + pollSCM('* * * * *') } + + options + { + timestamps() + buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')) } - stage('DeployAppIntoTomcat'){ - steps{ - sshagent(['bfe1b3c1-c29b-4a4d-b97a-c068b7748cd0']) { - sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@35.154.190.162:/opt/apache-tomcat-9.0.50/webapps/" + stages + { + stage('Checkout Code from GitHub') + { + steps() + { + git branch: 'development', credentialsId: '957b543e-6f77-4cef-9aec-82e9b0230975', url: 'https://github.com/devopstrainingblr/maven-web-application-1.git' + } + } + + stage('Build Project') + { + steps() + { + sh "mvn clean package" + } + } + + stage('Execute SonarQube Report') + { + steps() + { + sh "mvn clean sonar:sonar" + } + } + + stage('Upload Artifacts to Sonatype Nexus') + { + steps() + { + sh "mvn clean deploy" + } + } + + stage('Deploy Application to Tomcat') + { + steps() + { + sshagent(['bfe1b3c1-c29b-4a4d-b97a-c068b7748cd0']) + { + sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@35.154.190.162:/opt/apache-tomcat-9.0.50/webapps/" + } + } + } } + +post +{ + success + { + emailext to: 'devopstrainingblr@gmail.com,mithuntechnologies@yahoo.com', + subject: "Pipeline Build is Over Build # is ${env.BUILD_NUMBER} and Build Status is ${currentBuild.result}", + body: "Pipeline Build is Over Build # is ${env.BUILD_NUMBER} and Build Status is ${currentBuild.result}", + replyTo: 'devopstrainingblr@gmail.com' } + failure + { + emailext to: 'devopstrainingblr@gmail.com,mithuntechnologies@yahoo.com', + subject: "Pipeline Build is Over Build # is ${env.BUILD_NUMBER} and Build Status is ${currentBuild.result}", + body: "Pipeline Build is Over Build # is ${env.BUILD_NUMBER} and Build Status is ${currentBuild.result}", + replyTo: 'devopstrainingblr@gmail.com' + } } - */ -}//Stages Closing - -post{ - - success{ - emailext to: 'devopstrainingblr@gmail.com,mithuntechnologies@yahoo.com', - subject: "Pipeline Build is over .. Build # is ..${env.BUILD_NUMBER} and Build status is.. ${currentBuild.result}.", - body: "Pipeline Build is over .. Build # is ..${env.BUILD_NUMBER} and Build status is.. ${currentBuild.result}.", - replyTo: 'devopstrainingblr@gmail.com' - } - - failure{ - emailext to: 'devopstrainingblr@gmail.com,mithuntechnologies@yahoo.com', - subject: "Pipeline Build is over .. Build # is ..${env.BUILD_NUMBER} and Build status is.. ${currentBuild.result}.", - body: "Pipeline Build is over .. Build # is ..${env.BUILD_NUMBER} and Build status is.. ${currentBuild.result}.", - replyTo: 'devopstrainingblr@gmail.com' - } - -} - - -}//Pipeline closing +} \ No newline at end of file diff --git a/appdeploy.yaml b/appdeploy.yaml deleted file mode 100644 index ae4e3253df..0000000000 --- a/appdeploy.yaml +++ /dev/null @@ -1,32 +0,0 @@ ---- -- hosts: all - become: true - tasks: - - name: stop tomcat - systemd: - name: tomcat.service - state: stopped - - name: delete old application package - file: - path: /usr/local/apache-tomcat-7.0.76/webapps/maven-web-application.war - state: absent - - name: copy application package - copy: - src: target/maven-web-application.war - dest: /usr/local/apache-tomcat-7.0.76/webapps/maven-web-application.war - owner: tomcat - group: tomcat - - name: start tomcat - systemd: - name: tomcat.service - state: started - daemon_reload: yes - enabled: yes - - name: Pause for 1 Minute and continue with play - pause: - minutes: 1 - - name: Confirm that 200 OK response is returned - uri: - url: "http://{{ ansible_host }}:8080/maven-web-application/" - status_code: 200 -... \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index d58b32aab8..0000000000 --- a/docker-compose.yml +++ /dev/null @@ -1,11 +0,0 @@ -version: '3.1' -services: - springboot: - image: dockerhandson/maven-web-application:VERSION - restart: always - ports: - - 9090:8080 - networks: - - mavenappbridge -networks: - mavenappbridge: \ No newline at end of file From 9067d25626819846657e74fff8697bdf09222f57 Mon Sep 17 00:00:00 2001 From: DevOpsCloudAutomation Date: Fri, 26 Sep 2025 19:37:53 +0530 Subject: [PATCH 54/67] Updated Jenkinsfile --- .../com/mt/services/EmployeeService.class | Bin 1595 -> 1595 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/target/classes/com/mt/services/EmployeeService.class b/target/classes/com/mt/services/EmployeeService.class index bd7b4db3ed9ddb461bbd1ad91191411ba2ff93e7..6ce944bbb3243e1fe66be66b719234acf6cb17b5 100644 GIT binary patch delta 573 zcmX|6K~CFH5Pjcvun7(gPAO0VH6gSmZ6HZ$NdpC(K*R>Tx!7%>WHe1}& zJ6yM|?_^?uA-QjPx?^^&Q?8!`?ZCmJiY%7=D>1PDs+Y*fGAzY17#ue6FR3XkODJ)JNtQO%br{ z-^3QrgPm*9-2XcbGFk|I7$~9?o?_q~@kETGjQ98e3G1Ykh*d^~P?}g9^fnt{9zJ1< aGRHP{V1(PMVXTE*jd;6MZ-6O7!QLa^(pqT% delta 576 zcmX|8+fEZv6kU5dWrks_!+-)7?O42`m9|zzM6nbaUPK;D2q7^kbwVeOGbB@qFUFYg z0W|X&zG#e)*u)R;#ozENjB7d#4`=VS&pvDIbT7H8eFSf43QANiXz)<3k}gRU0_kp}zw$BZQ;%=VV2%Xy6ID3G?ByZVN_InvOey%-YLU z9VNk7d9kz^9+s-*N=3(lK-&oS_9&>M5?iuTy)VdZ`K`7aIUU#Wy|?u6KwxcnkrTAK z-l6LpB<;k&BNK~w9DkN#{6p!-$Li}(9L1La6i9MeMvc`1voL4pPoaMsv<=3j4Okds zG}8mj=U4$boTrpUq_Q)P38GobPI6t?g+#cBDP|Ybn877>lR;ZwNXin_`^fK{;_{L@ zquN(&=LE%Vq8s+DA)2@E4$(ckJVaHymZB3p{7Ml8M%>HJ?I!+esqC4*I+pNc;JJ=v jJmpyq#WSoVAI)cZ&PwI(>OiM4@NctTV?9Y;dWZG@Jrr4D From 4869f0e10e7f04e9f0d5ef87925eb0243cb8b63b Mon Sep 17 00:00:00 2001 From: gopialuri24 <114051773+gopialuri24@users.noreply.github.com> Date: Tue, 21 Oct 2025 12:21:57 +0530 Subject: [PATCH 55/67] Update pom.xml --- pom.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index cfc5be39ad..62d557afda 100644 --- a/pom.xml +++ b/pom.xml @@ -21,9 +21,8 @@ 5.1.2.RELEASE 4.11 1.2.17 - http://172.31.33.143:9000/ - admin - passw0rd + http://13.200.5.126:9000/ + squ_4b09db18de2f50272a7bf0cd45857631812be861 UTF-8 UTF-8 From 1857ce69d7dbc4937446a711ee8431f449ad3ba1 Mon Sep 17 00:00:00 2001 From: gopialuri24 <114051773+gopialuri24@users.noreply.github.com> Date: Tue, 21 Oct 2025 12:31:17 +0530 Subject: [PATCH 56/67] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 62d557afda..84cadd77d9 100644 --- a/pom.xml +++ b/pom.xml @@ -97,13 +97,13 @@ nexus Mithun Technologies Releases Nexus Repository - http://172.31.42.154:9980/mithuntechnologies/repository/canarabank-snapshot/ + http://13.202.101.179:9980/repository/metlife-release/ nexus Mithun Technologies Snapshot Nexus Repository - http://172.31.42.154:9980/mithuntechnologies/repository/canarabank-release/ + http://13.202.101.179:9980/repository/metlife-snapshot/ From 8ecc6adf86de7c704ae23c8cd876eaceeca201f6 Mon Sep 17 00:00:00 2001 From: gopialuri24 <114051773+gopialuri24@users.noreply.github.com> Date: Tue, 21 Oct 2025 12:50:17 +0530 Subject: [PATCH 57/67] Update pom.xml --- pom.xml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pom.xml b/pom.xml index 84cadd77d9..6b3dfda325 100644 --- a/pom.xml +++ b/pom.xml @@ -82,13 +82,6 @@ - - - javax.servlet - javax.servlet-api - 3.1.0 - provided - From 732b6eda9fba05c5dd59d181f29bdd8ae762633d Mon Sep 17 00:00:00 2001 From: gopialuri24 <114051773+gopialuri24@users.noreply.github.com> Date: Tue, 21 Oct 2025 17:24:53 +0530 Subject: [PATCH 58/67] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 6b3dfda325..c6118a97d2 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,7 @@ 5.1.2.RELEASE 4.11 1.2.17 - http://13.200.5.126:9000/ + http://172.31.29.230:9000/ squ_4b09db18de2f50272a7bf0cd45857631812be861 UTF-8 UTF-8 From 1683f7f1ee6c4dc1154d9ccff890d714d64ff77d Mon Sep 17 00:00:00 2001 From: gopialuri24 <114051773+gopialuri24@users.noreply.github.com> Date: Tue, 21 Oct 2025 17:31:22 +0530 Subject: [PATCH 59/67] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index c6118a97d2..d33655180e 100644 --- a/pom.xml +++ b/pom.xml @@ -90,13 +90,13 @@ nexus Mithun Technologies Releases Nexus Repository - http://13.202.101.179:9980/repository/metlife-release/ + http://172.31.31.213:9980/repository/metlife-release/ nexus Mithun Technologies Snapshot Nexus Repository - http://13.202.101.179:9980/repository/metlife-snapshot/ + http://172.31.31.213:9980/repository/metlife-snapshot/ From 2641a5a3726a165c9a136e89a4e11289690e035c Mon Sep 17 00:00:00 2001 From: gopialuri24 <114051773+gopialuri24@users.noreply.github.com> Date: Tue, 21 Oct 2025 18:58:57 +0530 Subject: [PATCH 60/67] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index d33655180e..800f7b0b4f 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,7 @@ 5.1.2.RELEASE 4.11 1.2.17 - http://172.31.29.230:9000/ + http://172.31.21.195:9000/ squ_4b09db18de2f50272a7bf0cd45857631812be861 UTF-8 UTF-8 From 24c930bc76d2ab23f453715525bd8868634ef0f6 Mon Sep 17 00:00:00 2001 From: gopialuri24 <114051773+gopialuri24@users.noreply.github.com> Date: Tue, 21 Oct 2025 19:04:35 +0530 Subject: [PATCH 61/67] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 800f7b0b4f..6bf49e97d7 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,7 @@ 4.11 1.2.17 http://172.31.21.195:9000/ - squ_4b09db18de2f50272a7bf0cd45857631812be861 + squ_b9a54228a1167b4aee75398b6647308d393bff72 UTF-8 UTF-8 From 169208f5c71f7455fbad7e222c7ac83d3deeccaa Mon Sep 17 00:00:00 2001 From: gopialuri24 <114051773+gopialuri24@users.noreply.github.com> Date: Mon, 27 Oct 2025 10:21:53 +0530 Subject: [PATCH 62/67] Update home.jsp --- src/main/webapp/jsps/home.jsp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index f72d7ce10e..c0ecbdb3bb 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -11,7 +11,7 @@

Welcome to Mithun Technologies

Phone Number: +91 9980923216

-

Mithun Technologies is a Very Good Training Center for Learning AWS DevOps, Jenkins, Docker, Kubernetes, GitOps, ArgoCD, Terraform and Amazon Web Services

+

Mithun Technologies is a Very Good Training Center for Learning AWS with DevOps, Jenkins, Docker, Kubernetes, GitOps, ArgoCD, Terraform and Amazon Web Services

Trainer Name: Bhaskar Reddy Lacchannagari

@@ -55,4 +55,4 @@ out.println("Server Host Name :: "+inetAddress.getHostName());

Copyrights 2025 by Mithun Technologies,Bengaluru

- \ No newline at end of file + From 0b2336836c1404aaade9b54d665a4974dd197f79 Mon Sep 17 00:00:00 2001 From: gopialuri24 <114051773+gopialuri24@users.noreply.github.com> Date: Mon, 27 Oct 2025 10:35:57 +0530 Subject: [PATCH 63/67] Update home.jsp --- src/main/webapp/jsps/home.jsp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index c0ecbdb3bb..64862d0423 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -4,13 +4,13 @@ -MithunTechnologies- Home Page +MithunTechnologies - Home Page

Welcome to Mithun Technologies

-

Phone Number: +91 9980923216

+

Phone Number: +91 9089098765

Mithun Technologies is a Very Good Training Center for Learning AWS with DevOps, Jenkins, Docker, Kubernetes, GitOps, ArgoCD, Terraform and Amazon Web Services

Trainer Name: Bhaskar Reddy Lacchannagari

From 2a15ca5c9b978bcf2865bfd48ddaa96513e6fa63 Mon Sep 17 00:00:00 2001 From: gopialuri24 <114051773+gopialuri24@users.noreply.github.com> Date: Mon, 27 Oct 2025 10:51:33 +0530 Subject: [PATCH 64/67] Update home.jsp --- src/main/webapp/jsps/home.jsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index 64862d0423..c61ac86445 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -11,7 +11,7 @@

Welcome to Mithun Technologies

Phone Number: +91 9089098765

-

Mithun Technologies is a Very Good Training Center for Learning AWS with DevOps, Jenkins, Docker, Kubernetes, GitOps, ArgoCD, Terraform and Amazon Web Services

+

Mithun Technologies is a Very Good Training Center for Learning AWS with DevOps tools, Jenkins, Docker, Kubernetes, GitOps, ArgoCD, Terraform and Amazon Web Services

Trainer Name: Bhaskar Reddy Lacchannagari

From 9bf926483c18657eaedc96ff2fe7cf15a5e976f0 Mon Sep 17 00:00:00 2001 From: gopialuri24 <114051773+gopialuri24@users.noreply.github.com> Date: Mon, 27 Oct 2025 11:00:16 +0530 Subject: [PATCH 65/67] Update home.jsp --- src/main/webapp/jsps/home.jsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index c61ac86445..0009b6ff04 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -10,7 +10,7 @@

Welcome to Mithun Technologies

-

Phone Number: +91 9089098765

+

Phone Number: +91 9885669789

Mithun Technologies is a Very Good Training Center for Learning AWS with DevOps tools, Jenkins, Docker, Kubernetes, GitOps, ArgoCD, Terraform and Amazon Web Services

Trainer Name: Bhaskar Reddy Lacchannagari

From cf7249ba954db19e2511adfd30098d1beee939ef Mon Sep 17 00:00:00 2001 From: gopialuri24 <114051773+gopialuri24@users.noreply.github.com> Date: Mon, 27 Oct 2025 11:06:20 +0530 Subject: [PATCH 66/67] Update home.jsp --- src/main/webapp/jsps/home.jsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index 0009b6ff04..0386dff5d4 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -10,7 +10,7 @@

Welcome to Mithun Technologies

-

Phone Number: +91 9885669789

+

Phone Number: +91 9980923216

Mithun Technologies is a Very Good Training Center for Learning AWS with DevOps tools, Jenkins, Docker, Kubernetes, GitOps, ArgoCD, Terraform and Amazon Web Services

Trainer Name: Bhaskar Reddy Lacchannagari

From 1fd13a1c09f62c991ad0c96829b167c1f6ff0650 Mon Sep 17 00:00:00 2001 From: gopialuri24 <114051773+gopialuri24@users.noreply.github.com> Date: Thu, 30 Oct 2025 10:59:42 +0530 Subject: [PATCH 67/67] Update Jenkinsfile --- Jenkinsfile | 98 +++++++++++------------------------------------------ 1 file changed, 20 insertions(+), 78 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 36485c80bf..6fc0a7094d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,84 +1,26 @@ -pipeline -{ - agent any - - tools - { - maven 'Maven_3.8.2' - } - - triggers - { - pollSCM('* * * * *') - } - - options - { - timestamps() - buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')) - } - - stages - { - stage('Checkout Code from GitHub') - { - steps() - { - git branch: 'development', credentialsId: '957b543e-6f77-4cef-9aec-82e9b0230975', url: 'https://github.com/devopstrainingblr/maven-web-application-1.git' - } +node { + def mavenHome = tool name: 'Maven-3.9.10' + // Stage 1: Checkout code from GitHub + stage('CheckoutCode') { + git branch: 'development', + credentialsId: '76cfa28f-7bb1-4202-828f-7bef3c5197fc', + url: 'https://github.com/gopialuri24/maven-web-application.git' } - - stage('Build Project') - { - steps() - { - sh "mvn clean package" - } - } - - stage('Execute SonarQube Report') - { - steps() - { - sh "mvn clean sonar:sonar" - } + + // Stage 2: Build the project using Maven + stage('Build') { + sh "${mavenHome}/bin/mvn clean package" } - stage('Upload Artifacts to Sonatype Nexus') - { - steps() - { - sh "mvn clean deploy" - } + stage('ExecuteSonarQubeReport') { + sh "${mavenHome}/bin/mvn clean sonar:sonar" } - - stage('Deploy Application to Tomcat') - { - steps() - { - sshagent(['bfe1b3c1-c29b-4a4d-b97a-c068b7748cd0']) - { - sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@35.154.190.162:/opt/apache-tomcat-9.0.50/webapps/" - } - } + stage('UploadtoNexus') { + sh "${mavenHome}/bin/mvn clean deploy" } - } - -post -{ - success - { - emailext to: 'devopstrainingblr@gmail.com,mithuntechnologies@yahoo.com', - subject: "Pipeline Build is Over Build # is ${env.BUILD_NUMBER} and Build Status is ${currentBuild.result}", - body: "Pipeline Build is Over Build # is ${env.BUILD_NUMBER} and Build Status is ${currentBuild.result}", - replyTo: 'devopstrainingblr@gmail.com' - } - failure - { - emailext to: 'devopstrainingblr@gmail.com,mithuntechnologies@yahoo.com', - subject: "Pipeline Build is Over Build # is ${env.BUILD_NUMBER} and Build Status is ${currentBuild.result}", - body: "Pipeline Build is Over Build # is ${env.BUILD_NUMBER} and Build Status is ${currentBuild.result}", - replyTo: 'devopstrainingblr@gmail.com' + stage("DeployTomcat"){ + sshagent(['879d2335-ec52-478a-9e95-bda25855527f']) { + sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.33.136:/opt/apache-tomcat-9.0.110/webapps" +} } - } -} \ No newline at end of file +}