From b2b72b964606e464420b447280e4bdd78c877c5b Mon Sep 17 00:00:00 2001 From: Mithun Technologies Date: Fri, 29 Mar 2024 20:09:14 +0530 Subject: [PATCH 01/37] 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/37] 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/37] 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/37] 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/37] 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/37] 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/37] 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/37] 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/37] 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/37] 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/37] 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/37] 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/37] 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/37] 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/37] 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/37] 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/37] 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/37] 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/37] 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/37] 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/37] 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/37] 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/37] 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/37] 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/37] 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 136a598fe3344ef2133ab5434c9e8f4614894f90 Mon Sep 17 00:00:00 2001 From: itspranavdubey Date: Wed, 30 Jul 2025 00:31:44 +0530 Subject: [PATCH 26/37] Working on JenkinsFileDocker --- JenkinsFileDocker | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 JenkinsFileDocker diff --git a/JenkinsFileDocker b/JenkinsFileDocker new file mode 100644 index 0000000000..213f0a5a76 --- /dev/null +++ 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/itspranavdubey/maven-web-application.git' + } + } + } +} \ No newline at end of file From bf32c34286f574636c41ab837b5694136ef086f0 Mon Sep 17 00:00:00 2001 From: itspranavdubey Date: Wed, 30 Jul 2025 01:20:53 +0530 Subject: [PATCH 27/37] Working on JenkinsFileDocker added stage for maven --- JenkinsFileDocker | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/JenkinsFileDocker b/JenkinsFileDocker index 213f0a5a76..6d0853b39a 100644 --- a/JenkinsFileDocker +++ b/JenkinsFileDocker @@ -1,7 +1,12 @@ pipeline { agent any - + + tools + { + maven 'Maven_3.9.7' + } + stages { stage('Checkout code to Jenkins from GitHub') @@ -11,5 +16,6 @@ pipeline git branch: 'master', url: 'https://github.com/itspranavdubey/maven-web-application.git' } } + stage() } } \ No newline at end of file From 5727befa9a5b73ecf2e91bd34e86e194af115e21 Mon Sep 17 00:00:00 2001 From: itspranavdubey Date: Wed, 30 Jul 2025 01:23:44 +0530 Subject: [PATCH 28/37] Working on JenkinsFileDocker added stage for maven --- JenkinsFileDocker | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/JenkinsFileDocker b/JenkinsFileDocker index 6d0853b39a..38623bdbb1 100644 --- a/JenkinsFileDocker +++ b/JenkinsFileDocker @@ -16,6 +16,10 @@ pipeline git branch: 'master', url: 'https://github.com/itspranavdubey/maven-web-application.git' } } - stage() + stage('Build Artifact Using Maven') + { + steps() + sh 'mvn clean package' + } } } \ No newline at end of file From c0bb7e125ddd4042f458ca181e9712d138b746aa Mon Sep 17 00:00:00 2001 From: itspranavdubey Date: Wed, 30 Jul 2025 01:24:43 +0530 Subject: [PATCH 29/37] Working on JenkinsFileDocker added stage for maven --- JenkinsFileDocker | 2 ++ 1 file changed, 2 insertions(+) diff --git a/JenkinsFileDocker b/JenkinsFileDocker index 38623bdbb1..854d1a4048 100644 --- a/JenkinsFileDocker +++ b/JenkinsFileDocker @@ -19,7 +19,9 @@ pipeline stage('Build Artifact Using Maven') { steps() + { sh 'mvn clean package' + } } } } \ No newline at end of file From a0287fb592a6284bcc58067ac80208b035a501f7 Mon Sep 17 00:00:00 2001 From: itspranavdubey Date: Wed, 30 Jul 2025 01:39:23 +0530 Subject: [PATCH 30/37] Working on JenkinsFileDocker added stage for docker --- JenkinsFileDocker | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/JenkinsFileDocker b/JenkinsFileDocker index 854d1a4048..73b4f3da97 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') @@ -23,5 +28,12 @@ pipeline sh 'mvn clean package' } } + stage("Build Docker Image") + { + steps() + { + sh 'docker build -t itspranavdubey/logindockerjenkins:${buildNumber} .' + } + } } } \ No newline at end of file From 813a029bd132b6811038ac82ea478af09931a38e Mon Sep 17 00:00:00 2001 From: itspranavdubey Date: Wed, 30 Jul 2025 02:00:27 +0530 Subject: [PATCH 31/37] Working on JenkinsFileDocker added stage to Authenticate & Push to Docker Hub --- JenkinsFileDocker | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/JenkinsFileDocker b/JenkinsFileDocker index 73b4f3da97..791df0ab95 100644 --- a/JenkinsFileDocker +++ b/JenkinsFileDocker @@ -35,5 +35,16 @@ pipeline sh 'docker build -t itspranavdubey/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 itspranavdubey -p ${Docker_Hub_Password}' + } + sh 'docker push itspranavdubey/logindockerjenkins:${buildNumber}' + } + } + } } \ No newline at end of file From b341d966c5b941d8ab5b5e3a65278b1cb7f95bb2 Mon Sep 17 00:00:00 2001 From: itspranavdubey Date: Wed, 30 Jul 2025 02:06:48 +0530 Subject: [PATCH 32/37] Working on JenkinsFileDocker added stage to Authenticate & Push to Docker Hub --- JenkinsFileDocker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFileDocker b/JenkinsFileDocker index 791df0ab95..54ba7ea634 100644 --- a/JenkinsFileDocker +++ b/JenkinsFileDocker @@ -39,7 +39,7 @@ pipeline { steps() { - withCredentials ([string(credentialsId: 'Docker_Hub_Password', variable: 'Docker_Hub_Password ')]) + withCredentials([string(credentialsId: 'Docker_Hub_Password', variable: 'Docker_Hub_Password')]) { sh 'docker login -u itspranavdubey -p ${Docker_Hub_Password}' } From 2cae627c6bd668785952207e8e46fbeda78ca5a7 Mon Sep 17 00:00:00 2001 From: itspranavdubey Date: Wed, 30 Jul 2025 02:17:15 +0530 Subject: [PATCH 33/37] Working on JenkinsFileDocker added stage to Authenticate & Push to Docker Hub --- JenkinsFileDocker | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JenkinsFileDocker b/JenkinsFileDocker index 54ba7ea634..524e3f16be 100644 --- a/JenkinsFileDocker +++ b/JenkinsFileDocker @@ -39,9 +39,9 @@ pipeline { steps() { - withCredentials([string(credentialsId: 'Docker_Hub_Password', variable: 'Docker_Hub_Password')]) + withCredentials([string(credentialsId: 'Dockerhubpassword', variable: 'Dockerhubpassword')]) { - sh 'docker login -u itspranavdubey -p ${Docker_Hub_Password}' + sh 'docker login -u itspranavdubey -p ${Dockerhubpassword}' } sh 'docker push itspranavdubey/logindockerjenkins:${buildNumber}' } From 688fc679cd55c1a15f39ace2175fe165cf9022b6 Mon Sep 17 00:00:00 2001 From: itspranavdubey Date: Wed, 30 Jul 2025 02:28:20 +0530 Subject: [PATCH 34/37] Working on JenkinsFileDocker added stage to Authenticate & Push to Docker Hub --- JenkinsFileDocker | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/JenkinsFileDocker b/JenkinsFileDocker index 524e3f16be..ae639f3e21 100644 --- a/JenkinsFileDocker +++ b/JenkinsFileDocker @@ -46,5 +46,12 @@ pipeline sh 'docker push itspranavdubey/logindockerjenkins:${buildNumber}' } } + stage('Remove Docker Images From Jenkins Locally') + { + steps() + { + sh 'docker rmi -f itspranavdubey/logindockerjenkins:${buildNumber}' + } + } } } \ No newline at end of file From 02888c7e217d9c683b4c7febbed1905ff74e5b5b Mon Sep 17 00:00:00 2001 From: itspranavdubey Date: Wed, 30 Jul 2025 02:49:59 +0530 Subject: [PATCH 35/37] Working on JenkinsFileDocker added stages to deploy app to deployment server --- JenkinsFileDocker | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/JenkinsFileDocker b/JenkinsFileDocker index ae639f3e21..5891b00045 100644 --- a/JenkinsFileDocker +++ b/JenkinsFileDocker @@ -53,5 +53,16 @@ pipeline sh 'docker rmi -f itspranavdubey/logindockerjenkins:${buildNumber}' } } + stage('Deploy App to Deployement Server') + { + steps() + { + sshagent(['DeploymentServer_SSH']) + { + sh "ssh -o StrictHostKeyChecking=no ubuntu@13.233.206.123 docker rm -f mavenwebapplication || true" + sh "ssh -o StrictHostKeyChecking=no ubuntu@13.233.206.123 docker run -d --name mavenwebapplication -p 8080:8080 itspranavdubey/maven-web-application:$Build_Number" + } + } + } } } \ No newline at end of file From 6be591e91bd1dff2a180dfa420aee1d1a3984416 Mon Sep 17 00:00:00 2001 From: itspranavdubey Date: Wed, 30 Jul 2025 02:57:36 +0530 Subject: [PATCH 36/37] Working on JenkinsFileDocker added stages to deploy app to deployment server --- JenkinsFileDocker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFileDocker b/JenkinsFileDocker index 5891b00045..4240c770a0 100644 --- a/JenkinsFileDocker +++ b/JenkinsFileDocker @@ -60,7 +60,7 @@ pipeline sshagent(['DeploymentServer_SSH']) { sh "ssh -o StrictHostKeyChecking=no ubuntu@13.233.206.123 docker rm -f mavenwebapplication || true" - sh "ssh -o StrictHostKeyChecking=no ubuntu@13.233.206.123 docker run -d --name mavenwebapplication -p 8080:8080 itspranavdubey/maven-web-application:$Build_Number" + sh "ssh -o StrictHostKeyChecking=no ubuntu@13.233.206.123 docker run -d --name mavenwebapplication -p 8080:8080 itspranavdubey/logindockerjenkins:$Build_Number" } } } From bfd13ac797241a2b5dd91bd794a75fc83fe62ae1 Mon Sep 17 00:00:00 2001 From: itspranavdubey Date: Wed, 30 Jul 2025 03:02:42 +0530 Subject: [PATCH 37/37] changed in 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 e340db6f9e..1a325de2d1 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 - Hello

Phone Number: +91 9980923216

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