From db41eec72ae38db16fa13fc3a68f398094f232ae Mon Sep 17 00:00:00 2001 From: annkessy <112156508+annkessy@users.noreply.github.com> Date: Thu, 15 Sep 2022 02:36:17 -0400 Subject: [PATCH 01/13] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 240a0c2841..5468b34bb7 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,7 @@ 5.1.2.RELEASE 4.11 1.2.17 - http:3.96.196.171:9000/ + http://18.144.44.2:9000/ admin admin UTF-8 From a14d36326febed411d0155e4c3de8ef2d4f12202 Mon Sep 17 00:00:00 2001 From: annkessy <112156508+annkessy@users.noreply.github.com> Date: Thu, 15 Sep 2022 03:13:36 -0400 Subject: [PATCH 02/13] Update pom.xml --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 5468b34bb7..a71cdfa9f4 100644 --- a/pom.xml +++ b/pom.xml @@ -94,17 +94,17 @@ - + nexus Landmark Technologies Releases Nexus Repository - http://35.174.19.3:8081/repository/amazon-release/ + http://13.52.100.64:8191/landmark/repository/tesla-fe-releases/ nexus Landmark Technologies Snapshot Nexus Repository - http://35.174.19.3:8081/repository/amazon-snapshot/ + http://13.52.100.64:8191/landmark/repository/tesla-fe-snapshot/ From 6d52ce076f052a1d716911d80a1d6ed68a0640e8 Mon Sep 17 00:00:00 2001 From: annkessy <112156508+annkessy@users.noreply.github.com> Date: Tue, 20 Sep 2022 02:08:17 -0400 Subject: [PATCH 03/13] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index a71cdfa9f4..23a7b8da74 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,7 @@ 5.1.2.RELEASE 4.11 1.2.17 - http://18.144.44.2:9000/ + http://172.31.26.197:9000/ admin admin UTF-8 From c4ae3eaf09d24f2bacaa30b316afb732c1b7d528 Mon Sep 17 00:00:00 2001 From: annkessy <112156508+annkessy@users.noreply.github.com> Date: Tue, 20 Sep 2022 02:53:38 -0400 Subject: [PATCH 04/13] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 23a7b8da74..3b3fff4f90 100644 --- a/pom.xml +++ b/pom.xml @@ -98,13 +98,13 @@ nexus Landmark Technologies Releases Nexus Repository - http://13.52.100.64:8191/landmark/repository/tesla-fe-releases/ + http://54.67.81.71:8191/landmark/repository/tesla-fe-releases/ nexus Landmark Technologies Snapshot Nexus Repository - http://13.52.100.64:8191/landmark/repository/tesla-fe-snapshot/ + http://54.67.81.71:8191/landmark/repository/tesla-fe-snapshot/ From e27f636d278fb7f745f294acca9842bcaff6cf18 Mon Sep 17 00:00:00 2001 From: annkessy <112156508+annkessy@users.noreply.github.com> Date: Tue, 20 Sep 2022 17:04:29 -0400 Subject: [PATCH 05/13] Delete pom.xml --- pom.xml | 154 -------------------------------------------------------- 1 file changed, 154 deletions(-) delete mode 100644 pom.xml diff --git a/pom.xml b/pom.xml deleted file mode 100644 index 3b3fff4f90..0000000000 --- a/pom.xml +++ /dev/null @@ -1,154 +0,0 @@ - - 4.0.0 - - com.mt - maven-web-application - war - 0.0.1-SNAPSHOT - - maven-web-application - - Maven Web Project for Java Project - - - Landmark Technologies - http://landmarktechnologies.com/ - - - - 1.8 - 5.1.2.RELEASE - 4.11 - 1.2.17 - http://172.31.26.197:9000/ - admin - admin - UTF-8 - UTF-8 - - - - - - - org.json - json - 20160212 - - - - - junit - junit - 3.8.1 - test - - - - javax.servlet - javax.servlet-api - 3.1.0 - provided - - - - org.mockito - mockito-core - 1.9.5 - test - - - - - - org.springframework - spring-core - ${spring.version} - - - org.springframework - spring-web - ${spring.version} - - - org.springframework - spring-webmvc - ${spring.version} - - - org.springframework - spring-context - ${spring.version} - - - - - - javax.servlet - javax.servlet-api - 3.1.0 - provided - - - - - - - - nexus - Landmark Technologies Releases Nexus Repository - http://54.67.81.71:8191/landmark/repository/tesla-fe-releases/ - - - - nexus - Landmark Technologies Snapshot Nexus Repository - http://54.67.81.71:8191/landmark/repository/tesla-fe-snapshot/ - - - - - - Landmark - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.3 - - ${jdk.version} - ${jdk.version} - - - - - org.eclipse.jetty - jetty-maven-plugin - 9.2.11.v20150529 - - 10 - - /maven-web-application - - - - - - org.apache.maven.plugins - maven-eclipse-plugin - 2.9 - - true - true - 2.0 - maven-web-application - - - - - - - - From 2cfa3b99a61bd860aef0d24f91f5f8d67de7f47c Mon Sep 17 00:00:00 2001 From: annkessy <112156508+annkessy@users.noreply.github.com> Date: Tue, 20 Sep 2022 17:05:52 -0400 Subject: [PATCH 06/13] Add files via upload --- pom.xml | 154 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 154 insertions(+) create mode 100644 pom.xml diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000000..7f3c689ba8 --- /dev/null +++ b/pom.xml @@ -0,0 +1,154 @@ + + 4.0.0 + + com.mt + maven-web-application + war + 0.0.1-SNAPSHOT + + maven-web-application + + Maven Web Project for Java Project + + + Landmark Technologies + http://landmarktechnologies.com/ + + + + 1.8 + 5.1.2.RELEASE + 4.11 + 1.2.17 + http://18.144.44.2:9000/ + admin + admin + UTF-8 + UTF-8 + + + + + + + org.json + json + 20160212 + + + + + junit + junit + 3.8.1 + test + + + + javax.servlet + javax.servlet-api + 3.1.0 + provided + + + + org.mockito + mockito-core + 1.9.5 + test + + + + + + org.springframework + spring-core + ${spring.version} + + + org.springframework + spring-web + ${spring.version} + + + org.springframework + spring-webmvc + ${spring.version} + + + org.springframework + spring-context + ${spring.version} + + + + + + javax.servlet + javax.servlet-api + 3.1.0 + provided + + + + + + + + nexus + Landmark Technologies Releases Nexus Repository + http://13.52.100.64:8191/landmark/repository/tesla-fe-releases/ + + + + nexus + Landmark Technologies Snapshot Nexus Repository + http://13.52.100.64:8191/landmark/repository/tesla-fe-snapshot/ + + + + + + Landmark + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.3 + + ${jdk.version} + ${jdk.version} + + + + + org.eclipse.jetty + jetty-maven-plugin + 9.2.11.v20150529 + + 10 + + /maven-web-application + + + + + + org.apache.maven.plugins + maven-eclipse-plugin + 2.9 + + true + true + 2.0 + maven-web-application + + + + + + + + From 1b2a0c6ec0163b27fcee8cbc576a61ee15ed6b31 Mon Sep 17 00:00:00 2001 From: annkessy <112156508+annkessy@users.noreply.github.com> Date: Tue, 20 Sep 2022 23:34:51 -0400 Subject: [PATCH 07/13] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 7f3c689ba8..56a3d3a68e 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,7 @@ 5.1.2.RELEASE 4.11 1.2.17 - http://18.144.44.2:9000/ + http://3.101.65.190:9000/ admin admin UTF-8 From 5645e5ae4eee1153bc7b7635cff53082fbbc1961 Mon Sep 17 00:00:00 2001 From: annkessy <112156508+annkessy@users.noreply.github.com> Date: Tue, 20 Sep 2022 23:48:46 -0400 Subject: [PATCH 08/13] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 56a3d3a68e..3824971f33 100644 --- a/pom.xml +++ b/pom.xml @@ -98,13 +98,13 @@ nexus Landmark Technologies Releases Nexus Repository - http://13.52.100.64:8191/landmark/repository/tesla-fe-releases/ + http://54.67.81.71:8191/landmark/repository/tesla-fe-releases/ nexus Landmark Technologies Snapshot Nexus Repository - http://13.52.100.64:8191/landmark/repository/tesla-fe-snapshot/ + http://54.67.81.71:8191/landmark/repository/tesla-fe-snapshots/ From 84670b92ef37bbf1c6bd9934c94f4e8515284455 Mon Sep 17 00:00:00 2001 From: annkessy <112156508+annkessy@users.noreply.github.com> Date: Sat, 24 Sep 2022 23:35:28 -0400 Subject: [PATCH 09/13] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 3824971f33..cbd4dfc6a8 100644 --- a/pom.xml +++ b/pom.xml @@ -98,13 +98,13 @@ nexus Landmark Technologies Releases Nexus Repository - http://54.67.81.71:8191/landmark/repository/tesla-fe-releases/ + http://54.67.81.71:8191/landmark/repository/fintech-app-releases/ nexus Landmark Technologies Snapshot Nexus Repository - http://54.67.81.71:8191/landmark/repository/tesla-fe-snapshots/ + http://54.67.81.71:8191/landmark/repository/fintech-app-snapshots/ From ec33a39250bd7cb2f9582a6b3e034fc9c3016d0e Mon Sep 17 00:00:00 2001 From: annkessy <112156508+annkessy@users.noreply.github.com> Date: Tue, 27 Sep 2022 13:37:12 -0400 Subject: [PATCH 10/13] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index cbd4dfc6a8..1d793bcbe6 100644 --- a/pom.xml +++ b/pom.xml @@ -98,13 +98,13 @@ nexus Landmark Technologies Releases Nexus Repository - http://54.67.81.71:8191/landmark/repository/fintech-app-releases/ + http://54.67.81.71:8191/landmark/repository/paypal-releases/ nexus Landmark Technologies Snapshot Nexus Repository - http://54.67.81.71:8191/landmark/repository/fintech-app-snapshots/ + http://54.67.81.71:8191/landmark/repository/paypal-snapshots/ From db08fb44ef8a6413a3dcdf45d2c61d8e4f4ab44f Mon Sep 17 00:00:00 2001 From: annkessy <112156508+annkessy@users.noreply.github.com> Date: Tue, 27 Sep 2022 14:47:18 -0400 Subject: [PATCH 11/13] Create Jenkinsfiles-declarative29 --- Jenkinsfiles-declarative29 | 63 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Jenkinsfiles-declarative29 diff --git a/Jenkinsfiles-declarative29 b/Jenkinsfiles-declarative29 new file mode 100644 index 0000000000..831b416f73 --- /dev/null +++ b/Jenkinsfiles-declarative29 @@ -0,0 +1,63 @@ +pipeline{ + agent any + tools { + maven "maven3.8.6" + } + stages { + stage('1GetCode'){ + steps{ + sh "echo 'cloning the latest application version' " + git branch: 'feature', credentialsId: 'GitHubCredentials', url: 'https://github.com/annkessy/maven-web-application' + } + } + stage('3Test+Build'){ + steps{ + sh "echo 'running JUnit-test-cases' " + sh "echo 'testing must pass to create artifacts ' " + sh "mvn clean package" + } + } + stage('4CodeQuality'){ + steps{ + sh "echo 'Perfoming CodeQualityAnalysis' " + sh "mvn sonar:sonar" + } + } + stage('5uploadNexus'){ + steps{ + sh "mvn deploy" + } + } + stage('8deploy2prod'){ + steps{ + deploy adapters: [tomcat9(credentialsId: 'tomcat-credentials', path: '', url: 'http://13.57.51.137:8080/')], contextPath: null, war: 'target/*war' + } + } +} +post{ + always{ + emailext body: '''Hey guys +Please check build status. + +Thanks +Landmark ++1 437 215 2483''', recipientProviders: [buildUser(), developers()], subject: 'success', to: 'paypal-team@gmail.com' + } + success{ + emailext body: '''Hey guys +Good job build and deployment is successful. + +Thanks +Annkessy ++1 437 215 2483''', recipientProviders: [buildUser(), developers()], subject: 'success', to: 'fintech-team@gmail.com' + } + failure{ + emailext body: '''Hey guys +Build failed. Please resolve issues. + +Thanks +Annkessy ++1 437 215 2483''', recipientProviders: [buildUser(), developers()], subject: 'success', to: 'fintech-team@gmail.com' + } + } +} From aaf4897411802b9ee239111fc85e8b69a1849615 Mon Sep 17 00:00:00 2001 From: annkessy <112156508+annkessy@users.noreply.github.com> Date: Tue, 27 Sep 2022 15:03:13 -0400 Subject: [PATCH 12/13] Create Jenkinsfiles-declarative --- Jenkinsfiles-declarative | 63 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Jenkinsfiles-declarative diff --git a/Jenkinsfiles-declarative b/Jenkinsfiles-declarative new file mode 100644 index 0000000000..831b416f73 --- /dev/null +++ b/Jenkinsfiles-declarative @@ -0,0 +1,63 @@ +pipeline{ + agent any + tools { + maven "maven3.8.6" + } + stages { + stage('1GetCode'){ + steps{ + sh "echo 'cloning the latest application version' " + git branch: 'feature', credentialsId: 'GitHubCredentials', url: 'https://github.com/annkessy/maven-web-application' + } + } + stage('3Test+Build'){ + steps{ + sh "echo 'running JUnit-test-cases' " + sh "echo 'testing must pass to create artifacts ' " + sh "mvn clean package" + } + } + stage('4CodeQuality'){ + steps{ + sh "echo 'Perfoming CodeQualityAnalysis' " + sh "mvn sonar:sonar" + } + } + stage('5uploadNexus'){ + steps{ + sh "mvn deploy" + } + } + stage('8deploy2prod'){ + steps{ + deploy adapters: [tomcat9(credentialsId: 'tomcat-credentials', path: '', url: 'http://13.57.51.137:8080/')], contextPath: null, war: 'target/*war' + } + } +} +post{ + always{ + emailext body: '''Hey guys +Please check build status. + +Thanks +Landmark ++1 437 215 2483''', recipientProviders: [buildUser(), developers()], subject: 'success', to: 'paypal-team@gmail.com' + } + success{ + emailext body: '''Hey guys +Good job build and deployment is successful. + +Thanks +Annkessy ++1 437 215 2483''', recipientProviders: [buildUser(), developers()], subject: 'success', to: 'fintech-team@gmail.com' + } + failure{ + emailext body: '''Hey guys +Build failed. Please resolve issues. + +Thanks +Annkessy ++1 437 215 2483''', recipientProviders: [buildUser(), developers()], subject: 'success', to: 'fintech-team@gmail.com' + } + } +} From 8628fc0f1eb5348b66bf70c8f5beb4a77eaabb8e Mon Sep 17 00:00:00 2001 From: annkessy <112156508+annkessy@users.noreply.github.com> Date: Tue, 27 Sep 2022 15:15:59 -0400 Subject: [PATCH 13/13] Create Jenkinsfiles-scripted29 --- Jenkinsfiles-scripted29 | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Jenkinsfiles-scripted29 diff --git a/Jenkinsfiles-scripted29 b/Jenkinsfiles-scripted29 new file mode 100644 index 0000000000..aa6ec32b72 --- /dev/null +++ b/Jenkinsfiles-scripted29 @@ -0,0 +1,40 @@ +node{ + def mavenHome = tool name: 'maven3.8.6' + stage('1cloneCode'){ + git "https://github.com/LandmakTechnology/maven-web-application" + } + stage('2Test&Build'){ + sh "${mavenHome}/bin/mvn clean package" + //bat "${mavenHome}/bin/mvn clean package" + } + stage('3codeQuality'){ + sh "${mavenHome}/bin/mvn clean sonar:sonar" + } + stage('4uploadArtifacts'){ + //sh "${mavenHome}/bin/mvn deploy" + //http://52.53.227.31:8191/landmark/repository/tesla-fe-snapshots/ + //http://52.53.227.31:8191/landmark/repository/tesla-fe-releases/ + // vi pom.xml and added repository details + // vi setting.xml and add AUTHENTICATION details + } + stage('5deploy2UAT'){ + sh "echo 'deploy to UAT' " + deploy adapters: [tomcat8(credentialsId: 'tomcat-credentials', path: '', url: 'http://35.170.249.131:8080/')], contextPath: null, war: 'target/*war' + } + stage('6approvalGate'){ + sh "echo 'ready for review' " + timeout(time:5, unit:'DAYS') { + input message: 'Application ready for deployment, Please review and approve' + } + } + stage('7deploy2Prod'){ + deploy adapters: [tomcat8(credentialsId: 'tomcat-credentials', path: '', url: 'http://35.170.249.131:8080/')], contextPath: null, war: 'target/*war' + } + stage('8emailNotification'){ + emailext body: '''Hi All, + +Check Build status. + +Landmark Technologies''', recipientProviders: [buildUser(), developers(), upstreamDevelopers(), brokenBuildSuspects(), brokenTestsSuspects(), contributor()], subject: 'build status', to: 'tesla-app@gmail.com' + } +}