From 4e218692b8e67e07300f6a31e8fc78a70bfbcf82 Mon Sep 17 00:00:00 2001 From: starlightng <100170729+starlightng@users.noreply.github.com> Date: Mon, 4 Apr 2022 16:09:37 +0100 Subject: [PATCH 01/21] Update pom.xml --- pom.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 65e06ef..7c90031 100644 --- a/pom.xml +++ b/pom.xml @@ -21,8 +21,8 @@ 5.1.2.RELEASE 4.11 1.2.17 - http:3.83.86.27:9000/ - class28 + http://44.201.177.42:9000/ + admin admin UTF-8 UTF-8 @@ -96,13 +96,13 @@ nexus Landmark Technologies Releases Nexus Repository - http://3.86.113.205:8888/repository/paypal-releases/ + http://44.201.177.42:8081/repository/boa-prod-releases/ nexus Landmark Technologies Snapshot Nexus Repository - http://3.86.113.205:8888/repository/paypal-snapshots/ + http://44.201.177.42:8081/repository/boa-prod-snapshot/ From acc74bbb006b37319ae367d594b7786ca24e1431 Mon Sep 17 00:00:00 2001 From: starlightng <100170729+starlightng@users.noreply.github.com> Date: Mon, 4 Apr 2022 16:15:12 +0100 Subject: [PATCH 02/21] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 7c90031..1ce77f8 100644 --- a/pom.xml +++ b/pom.xml @@ -96,13 +96,13 @@ nexus Landmark Technologies Releases Nexus Repository - http://44.201.177.42:8081/repository/boa-prod-releases/ + http:44.201.177.42:8081/repository/boa-prod-releases/ nexus Landmark Technologies Snapshot Nexus Repository - http://44.201.177.42:8081/repository/boa-prod-snapshot/ + http:44.201.177.42:8081/repository/boa-prod-snapshot/ From 846ccc811a4c194c6ddac15b66434840ad20ad77 Mon Sep 17 00:00:00 2001 From: starlightng <100170729+starlightng@users.noreply.github.com> Date: Mon, 4 Apr 2022 16:18:05 +0100 Subject: [PATCH 03/21] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 1ce77f8..7c90031 100644 --- a/pom.xml +++ b/pom.xml @@ -96,13 +96,13 @@ nexus Landmark Technologies Releases Nexus Repository - http:44.201.177.42:8081/repository/boa-prod-releases/ + http://44.201.177.42:8081/repository/boa-prod-releases/ nexus Landmark Technologies Snapshot Nexus Repository - http:44.201.177.42:8081/repository/boa-prod-snapshot/ + http://44.201.177.42:8081/repository/boa-prod-snapshot/ From 72a27bfeadecd205a203385e51eaa0be1e01fe44 Mon Sep 17 00:00:00 2001 From: starlightng <100170729+starlightng@users.noreply.github.com> Date: Tue, 5 Apr 2022 19:31:03 +0100 Subject: [PATCH 04/21] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 7c90031..36466bb 100644 --- a/pom.xml +++ b/pom.xml @@ -96,13 +96,13 @@ nexus Landmark Technologies Releases Nexus Repository - http://44.201.177.42:8081/repository/boa-prod-releases/ + http://44.201.177.42:8081/repository/Paypal-uat-releases/ nexus Landmark Technologies Snapshot Nexus Repository - http://44.201.177.42:8081/repository/boa-prod-snapshot/ + http://44.201.177.42:8081/repository/Paypal-uat-snapshot/ From c9aa99cdaa1985a04a68586de9e112b242cad274 Mon Sep 17 00:00:00 2001 From: starlightng <100170729+starlightng@users.noreply.github.com> Date: Tue, 5 Apr 2022 19:33:47 +0100 Subject: [PATCH 05/21] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 36466bb..9ab1ec0 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.mt maven-web-application war - 0.0.1-SNAPSHOT + 4.0.1-SNAPSHOT maven-web-application From 3065980c28b08795c04612427ebafa4d83a70698 Mon Sep 17 00:00:00 2001 From: starlightng <100170729+starlightng@users.noreply.github.com> Date: Tue, 5 Apr 2022 19:35:41 +0100 Subject: [PATCH 06/21] Create jenkins sample --- jenkins sample | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 jenkins sample diff --git a/jenkins sample b/jenkins sample new file mode 100644 index 0000000..bf5d454 --- /dev/null +++ b/jenkins sample @@ -0,0 +1,41 @@ +node{ + def mavenHome = tool name: 'maven3.8.5' + stage('1.Clone'){ + git branch: 'master', credentialsId: 'GitHub-Credentials', url: 'https://github.com/starlightng/boa-web-app' + } + stage('2.BuildArtifact'){ + sh "${mavenHome}/bin/mvn clean package" + } + stage('3.CodeQualityAnalysis'){ + sh "${mavenHome}/bin/mvn sonar:sonar" + } + stage('4.UploadArtifacts'){ + sh "${mavenHome}/bin/mvn deploy" + } + stage('5.Deploy2Dev'){ + deploy adapters: [tomcat9(credentialsId: 'tomcat-Credentials', path: '', url: 'http://13.245.209.110:8080/')], contextPath: null, war: 'target/*war' + } + stage('6.Deploy2UAT'){ + sshagent(['SAgent']) { + sh "scp -o StrictHostKeyChecking=no target/*war ec2-user@13.245.209.110:/opt/tomcat9/webapps/autapp.war" + } +} + stage('7.approval'){ + timeout(time:8, unit:'HOURS'){ + input message: 'Kindly approve deployment to Production' + } +} + stage('8.Deploy2Prod'){ + sshagent(['SAgent']) { + sh "scp -o StrictHostKeyChecking=no target/*war ec2-user@13.245.209.110:/opt/tomcat9/webapps/app.war" + } +} + stage('7.EmailAlerts'){ + emailext body: '''Hello, + +Build status for on-going boa-app + +Regards, +Starlight Communications''', subject: 'Project Status', to: 'isimichael@hotmail.com' + } +} From eba2d53cb6d0b8dd07dc2152a9f8ab20d832e1bf Mon Sep 17 00:00:00 2001 From: starlightng <100170729+starlightng@users.noreply.github.com> Date: Tue, 5 Apr 2022 19:41:46 +0100 Subject: [PATCH 07/21] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 9ab1ec0..c8dc92d 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.mt maven-web-application war - 4.0.1-SNAPSHOT + -SNAPSHOT maven-web-application From c4f3edf0b78c2fff33c3c9c666d9b10934a16b10 Mon Sep 17 00:00:00 2001 From: starlightng <100170729+starlightng@users.noreply.github.com> Date: Tue, 5 Apr 2022 20:24:17 +0100 Subject: [PATCH 08/21] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index c8dc92d..b1cc9ff 100644 --- a/pom.xml +++ b/pom.xml @@ -5,9 +5,9 @@ com.mt maven-web-application war - -SNAPSHOT + 5.0.1-SNAPSHOT - maven-web-application + boa-web-app Maven Web Project for Java Project From 8d20df6e01bfd580f107c53d23a5bb8756554030 Mon Sep 17 00:00:00 2001 From: starlightng <100170729+starlightng@users.noreply.github.com> Date: Tue, 5 Apr 2022 20:29:04 +0100 Subject: [PATCH 09/21] Update jenkins sample --- jenkins sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins sample b/jenkins sample index bf5d454..3bc97d2 100644 --- a/jenkins sample +++ b/jenkins sample @@ -10,7 +10,7 @@ node{ sh "${mavenHome}/bin/mvn sonar:sonar" } stage('4.UploadArtifacts'){ - sh "${mavenHome}/bin/mvn deploy" + // sh "${mavenHome}/bin/mvn deploy" } stage('5.Deploy2Dev'){ deploy adapters: [tomcat9(credentialsId: 'tomcat-Credentials', path: '', url: 'http://13.245.209.110:8080/')], contextPath: null, war: 'target/*war' From cdc5ec287623e257f70d364d5c13fb7d85fb5c83 Mon Sep 17 00:00:00 2001 From: starlightng <100170729+starlightng@users.noreply.github.com> Date: Tue, 5 Apr 2022 20:36:33 +0100 Subject: [PATCH 10/21] Update jenkins sample --- jenkins sample | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jenkins sample b/jenkins sample index 3bc97d2..f45f614 100644 --- a/jenkins sample +++ b/jenkins sample @@ -1,5 +1,5 @@ node{ - def mavenHome = tool name: 'maven3.8.5' + def mavenHome = tool name: 'maven3.8.4' stage('1.Clone'){ git branch: 'master', credentialsId: 'GitHub-Credentials', url: 'https://github.com/starlightng/boa-web-app' } @@ -10,7 +10,7 @@ node{ sh "${mavenHome}/bin/mvn sonar:sonar" } stage('4.UploadArtifacts'){ - // sh "${mavenHome}/bin/mvn deploy" + sh "${mavenHome}/bin/mvn deploy" } stage('5.Deploy2Dev'){ deploy adapters: [tomcat9(credentialsId: 'tomcat-Credentials', path: '', url: 'http://13.245.209.110:8080/')], contextPath: null, war: 'target/*war' From 81114510ebb7a7a393ac5479a2c0215b1c51dd00 Mon Sep 17 00:00:00 2001 From: starlightng <100170729+starlightng@users.noreply.github.com> Date: Tue, 5 Apr 2022 20:39:22 +0100 Subject: [PATCH 11/21] Update jenkins sample --- jenkins sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins sample b/jenkins sample index f45f614..f61670e 100644 --- a/jenkins sample +++ b/jenkins sample @@ -10,7 +10,7 @@ node{ sh "${mavenHome}/bin/mvn sonar:sonar" } stage('4.UploadArtifacts'){ - sh "${mavenHome}/bin/mvn deploy" + //sh "${mavenHome}/bin/mvn deploy" } stage('5.Deploy2Dev'){ deploy adapters: [tomcat9(credentialsId: 'tomcat-Credentials', path: '', url: 'http://13.245.209.110:8080/')], contextPath: null, war: 'target/*war' From f25923800666f9d926659ff12efee45b5c66f950 Mon Sep 17 00:00:00 2001 From: starlightng <100170729+starlightng@users.noreply.github.com> Date: Tue, 5 Apr 2022 20:42:15 +0100 Subject: [PATCH 12/21] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index b1cc9ff..f086cf0 100644 --- a/pom.xml +++ b/pom.xml @@ -96,13 +96,13 @@ nexus Landmark Technologies Releases Nexus Repository - http://44.201.177.42:8081/repository/Paypal-uat-releases/ + http://44.201.177.42:8081/repository/boa-releases/ nexus Landmark Technologies Snapshot Nexus Repository - http://44.201.177.42:8081/repository/Paypal-uat-snapshot/ + http://44.201.177.42:8081/repository/boa-snapshot/ From 35cc6b6860c7926a2ddf3882792cc1e1bb7d5822 Mon Sep 17 00:00:00 2001 From: starlightng <100170729+starlightng@users.noreply.github.com> Date: Tue, 5 Apr 2022 20:48:46 +0100 Subject: [PATCH 13/21] Update jenkins sample --- jenkins sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins sample b/jenkins sample index f61670e..f45f614 100644 --- a/jenkins sample +++ b/jenkins sample @@ -10,7 +10,7 @@ node{ sh "${mavenHome}/bin/mvn sonar:sonar" } stage('4.UploadArtifacts'){ - //sh "${mavenHome}/bin/mvn deploy" + sh "${mavenHome}/bin/mvn deploy" } stage('5.Deploy2Dev'){ deploy adapters: [tomcat9(credentialsId: 'tomcat-Credentials', path: '', url: 'http://13.245.209.110:8080/')], contextPath: null, war: 'target/*war' From f57de05e0c1803cc76f58ae842c5689f1f8d6f87 Mon Sep 17 00:00:00 2001 From: starlightng <100170729+starlightng@users.noreply.github.com> Date: Tue, 5 Apr 2022 20:51:47 +0100 Subject: [PATCH 14/21] Update pom.xml --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index f086cf0..e2f5ce9 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.mt maven-web-application war - 5.0.1-SNAPSHOT + 1.0.1-SNAPSHOT boa-web-app @@ -96,13 +96,13 @@ nexus Landmark Technologies Releases Nexus Repository - http://44.201.177.42:8081/repository/boa-releases/ + http://44.201.177.42:8081/repository/Paypal-uat-releases/ nexus Landmark Technologies Snapshot Nexus Repository - http://44.201.177.42:8081/repository/boa-snapshot/ + http://44.201.177.42:8081/repository/Paypal-uat-snapshot/ From 724cbc29aedcae77420e565c35e9ff148cab6b7d Mon Sep 17 00:00:00 2001 From: starlightng <100170729+starlightng@users.noreply.github.com> Date: Tue, 5 Apr 2022 21:00:49 +0100 Subject: [PATCH 15/21] Update jenkins sample --- jenkins sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins sample b/jenkins sample index f45f614..bf5d454 100644 --- a/jenkins sample +++ b/jenkins sample @@ -1,5 +1,5 @@ node{ - def mavenHome = tool name: 'maven3.8.4' + def mavenHome = tool name: 'maven3.8.5' stage('1.Clone'){ git branch: 'master', credentialsId: 'GitHub-Credentials', url: 'https://github.com/starlightng/boa-web-app' } From cb6105f97caaab2adfcee5d6a78938b5e0d244db Mon Sep 17 00:00:00 2001 From: starlightng <100170729+starlightng@users.noreply.github.com> Date: Tue, 5 Apr 2022 21:35:23 +0100 Subject: [PATCH 16/21] Delete jenkins sample --- jenkins sample | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 jenkins sample diff --git a/jenkins sample b/jenkins sample deleted file mode 100644 index bf5d454..0000000 --- a/jenkins sample +++ /dev/null @@ -1,41 +0,0 @@ -node{ - def mavenHome = tool name: 'maven3.8.5' - stage('1.Clone'){ - git branch: 'master', credentialsId: 'GitHub-Credentials', url: 'https://github.com/starlightng/boa-web-app' - } - stage('2.BuildArtifact'){ - sh "${mavenHome}/bin/mvn clean package" - } - stage('3.CodeQualityAnalysis'){ - sh "${mavenHome}/bin/mvn sonar:sonar" - } - stage('4.UploadArtifacts'){ - sh "${mavenHome}/bin/mvn deploy" - } - stage('5.Deploy2Dev'){ - deploy adapters: [tomcat9(credentialsId: 'tomcat-Credentials', path: '', url: 'http://13.245.209.110:8080/')], contextPath: null, war: 'target/*war' - } - stage('6.Deploy2UAT'){ - sshagent(['SAgent']) { - sh "scp -o StrictHostKeyChecking=no target/*war ec2-user@13.245.209.110:/opt/tomcat9/webapps/autapp.war" - } -} - stage('7.approval'){ - timeout(time:8, unit:'HOURS'){ - input message: 'Kindly approve deployment to Production' - } -} - stage('8.Deploy2Prod'){ - sshagent(['SAgent']) { - sh "scp -o StrictHostKeyChecking=no target/*war ec2-user@13.245.209.110:/opt/tomcat9/webapps/app.war" - } -} - stage('7.EmailAlerts'){ - emailext body: '''Hello, - -Build status for on-going boa-app - -Regards, -Starlight Communications''', subject: 'Project Status', to: 'isimichael@hotmail.com' - } -} From c8f120a821b2acd36b28c39d562d6a1acde97333 Mon Sep 17 00:00:00 2001 From: starlightng <100170729+starlightng@users.noreply.github.com> Date: Wed, 6 Apr 2022 19:41:24 +0100 Subject: [PATCH 17/21] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e2f5ce9..4e770a0 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.mt maven-web-application war - 1.0.1-SNAPSHOT + 7.0.1-SNAPSHOT boa-web-app From 2ace78e04e98644ae31bfc2ea750e22bccf7cdef Mon Sep 17 00:00:00 2001 From: starlightng <100170729+starlightng@users.noreply.github.com> Date: Wed, 6 Apr 2022 19:49:54 +0100 Subject: [PATCH 18/21] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 4e770a0..ced01c8 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.mt maven-web-application war - 7.0.1-SNAPSHOT + SNAPSHOT boa-web-app From c24b2148e27a425963c0e32ccc64dbd19afcfb20 Mon Sep 17 00:00:00 2001 From: starlightng <100170729+starlightng@users.noreply.github.com> Date: Wed, 6 Apr 2022 19:53:27 +0100 Subject: [PATCH 19/21] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ced01c8..5bd22c5 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.mt maven-web-application war - SNAPSHOT + release boa-web-app From 2c2d770f8347e7e79f4fca1e5a46c829300e37d7 Mon Sep 17 00:00:00 2001 From: starlightng <100170729+starlightng@users.noreply.github.com> Date: Wed, 6 Apr 2022 20:14:41 +0100 Subject: [PATCH 20/21] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 5bd22c5..568ecfe 100644 --- a/pom.xml +++ b/pom.xml @@ -96,13 +96,13 @@ nexus Landmark Technologies Releases Nexus Repository - http://44.201.177.42:8081/repository/Paypal-uat-releases/ + http://44.201.177.42:8081/repository/boa-releases/ nexus Landmark Technologies Snapshot Nexus Repository - http://44.201.177.42:8081/repository/Paypal-uat-snapshot/ + http://44.201.177.42:8081/repository/boa-snapshot/ From d8607e57f0863fbbed635be6873937148676ad29 Mon Sep 17 00:00:00 2001 From: starlightng <100170729+starlightng@users.noreply.github.com> Date: Wed, 6 Apr 2022 20:15:24 +0100 Subject: [PATCH 21/21] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 568ecfe..1a525c0 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.mt maven-web-application war - release + 8.1-SNAPSHOT boa-web-app