From 9be03a50fdae2add246dda844e00f7fa8c84ff0b Mon Sep 17 00:00:00 2001 From: KeerthiJT Date: Wed, 7 Aug 2024 04:56:05 +0000 Subject: [PATCH 01/19] added jenkinsfile --- jenkinsfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 jenkinsfile diff --git a/jenkinsfile b/jenkinsfile new file mode 100644 index 000000000..2960374bf --- /dev/null +++ b/jenkinsfile @@ -0,0 +1,24 @@ +pipeline { + agent any + stages { + stage('Build') { + steps { + echo 'BUild artifacts' + // sh 'mvn clean install' + } + } + stage('Test stage') { + steps { + echo 'Run test cases' + //sh 'mvn test' + } + } + stage('Deploy') { + steps { + echo 'Deploy stage' + // deploy adapters: [tomcat9(credentialsId: '2ddab960-be6e-48b9-a2d0-d001019a8a0e', path: '', url: 'http://13.126.245.58:8090')], contextPath: null, war: '*/.war' + } + } + } + + } From 0d7f9601fd22ae613bf1b472089fb33168a64afa Mon Sep 17 00:00:00 2001 From: KeerthiJT <132989882+KeerthiJT@users.noreply.github.com> Date: Sun, 11 Aug 2024 08:27:20 +0530 Subject: [PATCH 02/19] Update jenkinsfile --- jenkinsfile | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index 2960374bf..5e0817e60 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -1,23 +1,21 @@ pipeline { agent any +environment { +PATH = "/opt/maven/bin:$PATH" +} stages { stage('Build') { steps { - echo 'BUild artifacts' - // sh 'mvn clean install' + // echo 'BUild artifacts' + sh 'mvn clean install' } } - stage('Test stage') { + stage('SonarQube analysis') { steps { - echo 'Run test cases' - //sh 'mvn test' - } - } - stage('Deploy') { - steps { - echo 'Deploy stage' - // deploy adapters: [tomcat9(credentialsId: '2ddab960-be6e-48b9-a2d0-d001019a8a0e', path: '', url: 'http://13.126.245.58:8090')], contextPath: null, war: '*/.war' - } + withSonarQubeEnv('sonarqube'){ + sh "mvn sonar:sonar" + } + } } } From c0dd2c10aa172a5cd790458ccde5c96fd27b2bac Mon Sep 17 00:00:00 2001 From: KeerthiJT <132989882+KeerthiJT@users.noreply.github.com> Date: Sun, 11 Aug 2024 08:28:02 +0530 Subject: [PATCH 03/19] Update jenkinsfile --- jenkinsfile | 1 - 1 file changed, 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index 5e0817e60..59f28cb29 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -6,7 +6,6 @@ PATH = "/opt/maven/bin:$PATH" stages { stage('Build') { steps { - // echo 'BUild artifacts' sh 'mvn clean install' } } From 8ae9e9e27a1346c578505c2129b1996394838742 Mon Sep 17 00:00:00 2001 From: KeerthiJT <132989882+KeerthiJT@users.noreply.github.com> Date: Sun, 11 Aug 2024 15:40:55 +0530 Subject: [PATCH 04/19] Update pom.xml --- pom.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 85f2e2e2a..28ea1e580 100644 --- a/pom.xml +++ b/pom.xml @@ -23,7 +23,13 @@ maven-war-plugin 2.1.1 + + + org.sonarsource.scanner.maven + sonar-maven-plugin + 4.0.0.4121 + - \ No newline at end of file + From 6e82fee029d34bcd120529ff79fa81d372128c1d Mon Sep 17 00:00:00 2001 From: KeerthiJT <132989882+KeerthiJT@users.noreply.github.com> Date: Sun, 11 Aug 2024 16:02:11 +0530 Subject: [PATCH 05/19] Update pom.xml --- pom.xml | 56 +++++++++++++++++++++++++------------------------------- 1 file changed, 25 insertions(+), 31 deletions(-) diff --git a/pom.xml b/pom.xml index 28ea1e580..0afaa74e8 100644 --- a/pom.xml +++ b/pom.xml @@ -1,35 +1,29 @@ - 4.0.0 - com.efsavage - hello-world-war - 1.0.0 - war - Hello World Web Application Repository - Simplest possible Java Webapp + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 + com.efsavage + hello-world-war + 1.0.0 + war + Hello World Web Application Repository + Simplest possible Java Webapp - - - - org.mortbay.jetty - jetty-maven-plugin - 8.1.5.v20120716 - - 0 - - - - org.apache.maven.plugins - maven-war-plugin - 2.1.1 - - - - org.sonarsource.scanner.maven - sonar-maven-plugin - 4.0.0.4121 - - - + + + + org.eclipse.jetty + jetty-maven-plugin + 9.4.43.v20210629 + + 0 + + + + org.apache.maven.plugins + maven-war-plugin + 3.3.1 + + + From 8601d88a8a6a710c0889ee7af65d7f8145e6e152 Mon Sep 17 00:00:00 2001 From: KeerthiJT <132989882+KeerthiJT@users.noreply.github.com> Date: Sun, 11 Aug 2024 17:47:25 +0530 Subject: [PATCH 06/19] updated to a login page code --- src/main/webapp/index.jsp | 97 +++++++++++++++++++++++++++++++++++---- 1 file changed, 87 insertions(+), 10 deletions(-) diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp index ead0e510f..59b99751e 100644 --- a/src/main/webapp/index.jsp +++ b/src/main/webapp/index.jsp @@ -1,13 +1,90 @@ - + + -Hello World! + + + Login Page + -

Hello World!

-

- It is now - <%= new java.util.Date() %>

-

- You are coming from - <%= request.getRemoteAddr() %>

- \ No newline at end of file + +
+

Login

+
+ + + + + + + + + +
+
+ + + From 2ee599229f8755b1f1a984170a60afa32b323b1d Mon Sep 17 00:00:00 2001 From: KeerthiJT <132989882+KeerthiJT@users.noreply.github.com> Date: Sun, 11 Aug 2024 17:54:43 +0530 Subject: [PATCH 07/19] Update index.jsp --- src/main/webapp/index.jsp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp index 59b99751e..f10cc68ed 100644 --- a/src/main/webapp/index.jsp +++ b/src/main/webapp/index.jsp @@ -1,8 +1,6 @@ - - Login Page +Hello World! - -
-

Login

-
- - - - - - - - - -
-
- +

Hello World!

+

I am learning PipeLine Job!

+

built in worker node !

+

+ It is now + <%= new java.util.Date() %>

+

+ You are coming from + <%= request.getRemoteAddr() %>

- From 20657247fa253619a8a20520721f07183f9a6e61 Mon Sep 17 00:00:00 2001 From: KeerthiJT <132989882+KeerthiJT@users.noreply.github.com> Date: Mon, 12 Aug 2024 15:30:56 +0530 Subject: [PATCH 09/19] Update pom.xml --- pom.xml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pom.xml b/pom.xml index 0afaa74e8..74fac57b4 100644 --- a/pom.xml +++ b/pom.xml @@ -25,5 +25,23 @@ + + + maven-releases + + http://3.110.105.133:8081/repository/new_project/ + + + maven-snapshots + + http://3.110.105.133:8081/repository/new_project/ + + + + + maven-releases + maven-releases + http://3.110.105.133:8081/repository/new_project/ + From cb0a111fd59938a4a3022365d72fdc2925fab736 Mon Sep 17 00:00:00 2001 From: KeerthiJT <132989882+KeerthiJT@users.noreply.github.com> Date: Mon, 12 Aug 2024 15:42:17 +0530 Subject: [PATCH 10/19] Update pom.xml --- pom.xml | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/pom.xml b/pom.xml index 74fac57b4..9abc68f2c 100644 --- a/pom.xml +++ b/pom.xml @@ -25,23 +25,24 @@ + - - maven-releases - - http://3.110.105.133:8081/repository/new_project/ - - - maven-snapshots - - http://3.110.105.133:8081/repository/new_project/ - - + + maven-releases + http://3.110.105.133:8081/repository/new_project/ + + + maven-snapshots + http://3.110.105.133:8081/repository/new_project/ + + - - maven-releases - maven-releases - http://3.110.105.133:8081/repository/new_project/ - + + + maven-releases + maven-releases + http://3.110.105.133:8081/repository/new_project/ + + From 495056278f85cef3c4fc4f18f514b0bcdd1db250 Mon Sep 17 00:00:00 2001 From: KeerthiJT <132989882+KeerthiJT@users.noreply.github.com> Date: Mon, 12 Aug 2024 15:45:13 +0530 Subject: [PATCH 11/19] Update pom.xml --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 9abc68f2c..14f4510da 100644 --- a/pom.xml +++ b/pom.xml @@ -28,7 +28,7 @@ - maven-releases + new_project http://3.110.105.133:8081/repository/new_project/ @@ -39,8 +39,8 @@ - maven-releases - maven-releases + new_project + new_project http://3.110.105.133:8081/repository/new_project/ From f3d3ee238320b1769d766de7212e26da62af57da Mon Sep 17 00:00:00 2001 From: KeerthiJT <132989882+KeerthiJT@users.noreply.github.com> Date: Mon, 12 Aug 2024 16:10:35 +0530 Subject: [PATCH 12/19] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 14f4510da..2d9d8802b 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.efsavage hello-world-war - 1.0.0 + 1.0.1 war Hello World Web Application Repository Simplest possible Java Webapp From 86263ff76b0441bfa3ebaba4fe44413f5c4aacd3 Mon Sep 17 00:00:00 2001 From: KeerthiJT <132989882+KeerthiJT@users.noreply.github.com> Date: Tue, 13 Aug 2024 09:28:48 +0530 Subject: [PATCH 13/19] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 2d9d8802b..52135e361 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.efsavage hello-world-war - 1.0.1 + 1.0.2 war Hello World Web Application Repository Simplest possible Java Webapp From 260ee5d5aab2f6e427067cb97b70a32a3631b756 Mon Sep 17 00:00:00 2001 From: KeerthiJT <132989882+KeerthiJT@users.noreply.github.com> Date: Tue, 13 Aug 2024 09:32:44 +0530 Subject: [PATCH 14/19] Update pom.xml --- pom.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pom.xml b/pom.xml index 52135e361..bc5748c8c 100644 --- a/pom.xml +++ b/pom.xml @@ -44,5 +44,9 @@ http://3.110.105.133:8081/repository/new_project/ + + + UTF-8 + From 461a42a83bdfd8f2d8c852d5e06f75ff4c891e35 Mon Sep 17 00:00:00 2001 From: KeerthiJT <132989882+KeerthiJT@users.noreply.github.com> Date: Tue, 13 Aug 2024 09:35:16 +0530 Subject: [PATCH 15/19] Update pom.xml --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index bc5748c8c..5a28f796b 100644 --- a/pom.xml +++ b/pom.xml @@ -29,11 +29,11 @@ new_project - http://3.110.105.133:8081/repository/new_project/ + http://43.205.203.198:8081/repository/new_project/ maven-snapshots - http://3.110.105.133:8081/repository/new_project/ + http://43.205.203.198:8081/repository/new_project/ @@ -41,7 +41,7 @@ new_project new_project - http://3.110.105.133:8081/repository/new_project/ + http://43.205.203.198:8081/repository/new_project/ From 7edfa48895d7d6e7f1cf13cde2b7b538871229ad Mon Sep 17 00:00:00 2001 From: KeerthiJT <132989882+KeerthiJT@users.noreply.github.com> Date: Wed, 14 Aug 2024 19:29:43 +0530 Subject: [PATCH 16/19] Update index.jsp --- src/main/webapp/index.jsp | 73 +++++++++++++++++++++++++++++++-------- 1 file changed, 59 insertions(+), 14 deletions(-) diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp index b19d4d631..33854d54a 100644 --- a/src/main/webapp/index.jsp +++ b/src/main/webapp/index.jsp @@ -1,15 +1,60 @@ - + + -Hello World! - - -

Hello World!

-

I am learning PipeLine Job!

-

built in worker node !

-

- It is now - <%= new java.util.Date() %>

-

- You are coming from - <%= request.getRemoteAddr() %>

- + + Login Page + + + +

Student Login Form

+
+
+ + + + + + Remember me + + Forgot password? +
+
+ + From db69fedb021533641456d93df538b0488c134c98 Mon Sep 17 00:00:00 2001 From: KeerthiJT <132989882+KeerthiJT@users.noreply.github.com> Date: Wed, 14 Aug 2024 19:33:16 +0530 Subject: [PATCH 17/19] Update index.jsp --- src/main/webapp/index.jsp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp index 33854d54a..8bf3e844a 100644 --- a/src/main/webapp/index.jsp +++ b/src/main/webapp/index.jsp @@ -1,7 +1,5 @@ - - Login Page