From 302fda3a51f1bf8a83e5cb7320626f95316bd3fb Mon Sep 17 00:00:00 2001 From: christinedee <111324030+christinedee@users.noreply.github.com> Date: Sat, 21 Jan 2023 12:31:49 -0600 Subject: [PATCH 01/18] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 240a0c2841..ea05891923 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:172.31.17.108:9000/ admin admin UTF-8 From 18f281e72e6b0efa34832518963ca0fee40b2982 Mon Sep 17 00:00:00 2001 From: christinedee <111324030+christinedee@users.noreply.github.com> Date: Tue, 24 Jan 2023 15:43:20 -0600 Subject: [PATCH 02/18] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index ea05891923..c21ffc6739 100644 --- a/pom.xml +++ b/pom.xml @@ -98,13 +98,13 @@ nexus Landmark Technologies Releases Nexus Repository - http://35.174.19.3:8081/repository/amazon-release/ + http://18.190.156.228:8181/deestories/repository/tesla-fe-releases/ nexus Landmark Technologies Snapshot Nexus Repository - http://35.174.19.3:8081/repository/amazon-snapshot/ + http://18.190.156.228:8181/deestories/repository/tesla-fe-snapshots/ From da0f416a0e8d8262a59b88338895cc7937d6d02f Mon Sep 17 00:00:00 2001 From: christinedee <111324030+christinedee@users.noreply.github.com> Date: Mon, 6 Feb 2023 18:38:51 -0600 Subject: [PATCH 03/18] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index c21ffc6739..d3ff99759f 100644 --- a/pom.xml +++ b/pom.xml @@ -98,13 +98,13 @@ nexus Landmark Technologies Releases Nexus Repository - http://18.190.156.228:8181/deestories/repository/tesla-fe-releases/ + http://3.17.157.87:8181/deestories/repository/tesla-fe-releases/ nexus Landmark Technologies Snapshot Nexus Repository - http://18.190.156.228:8181/deestories/repository/tesla-fe-snapshots/ + http://3.17.157.87:8181/deestories/repository/tesla-fe-snapshots/ From 66263103872cc421e870803e7c2d8ebcee8ed6e4 Mon Sep 17 00:00:00 2001 From: christinedee <111324030+christinedee@users.noreply.github.com> Date: Mon, 6 Feb 2023 22:31:47 -0600 Subject: [PATCH 04/18] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index d3ff99759f..f08d30d3fa 100644 --- a/pom.xml +++ b/pom.xml @@ -98,13 +98,13 @@ nexus Landmark Technologies Releases Nexus Repository - http://3.17.157.87:8181/deestories/repository/tesla-fe-releases/ + http://3.137.176.215:8181/deestories/repository/tesla-fe-releases/ nexus Landmark Technologies Snapshot Nexus Repository - http://3.17.157.87:8181/deestories/repository/tesla-fe-snapshots/ + http://3.137.176.215:8181/deestories/repository/tesla-fe-snapshots/ From 6da887bc0c6593eea141e440b752495fb85ec822 Mon Sep 17 00:00:00 2001 From: christinedee <111324030+christinedee@users.noreply.github.com> Date: Tue, 7 Feb 2023 17:30:12 -0600 Subject: [PATCH 05/18] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index f08d30d3fa..1f764854d7 100644 --- a/pom.xml +++ b/pom.xml @@ -98,13 +98,13 @@ nexus Landmark Technologies Releases Nexus Repository - http://3.137.176.215:8181/deestories/repository/tesla-fe-releases/ + http://3.129.21.183:8181/deestories/repository/tesla-fe-releases/ nexus Landmark Technologies Snapshot Nexus Repository - http://3.137.176.215:8181/deestories/repository/tesla-fe-snapshots/ + http://3.129.21.183:8181/deestories/repository/tesla-fe-snapshots/ From 779a9620e755da8b1e0ada1ba126d7661064fe61 Mon Sep 17 00:00:00 2001 From: christinedee <111324030+christinedee@users.noreply.github.com> Date: Mon, 6 Mar 2023 11:19:03 -0600 Subject: [PATCH 06/18] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 1f764854d7..056e8f407f 100644 --- a/pom.xml +++ b/pom.xml @@ -98,13 +98,13 @@ nexus Landmark Technologies Releases Nexus Repository - http://3.129.21.183:8181/deestories/repository/tesla-fe-releases/ + http://18.116.69.9:8181/deestories/repository/tesla-fe-releases/ nexus Landmark Technologies Snapshot Nexus Repository - http://3.129.21.183:8181/deestories/repository/tesla-fe-snapshots/ + http://18.116.69.9:8181/deestories/repository/tesla-fe-snapshots/ From d38659c5224e98ce88197e51f70dbafacb34ba9f Mon Sep 17 00:00:00 2001 From: christinedee <111324030+christinedee@users.noreply.github.com> Date: Mon, 6 Mar 2023 14:56:43 -0600 Subject: [PATCH 07/18] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 056e8f407f..32618dd567 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.mt maven-web-application war - 0.0.1-SNAPSHOT + 0.0.1 maven-web-application From 891c2a85f435503201584615e25468a0c9bcaf05 Mon Sep 17 00:00:00 2001 From: christinedee <111324030+christinedee@users.noreply.github.com> Date: Mon, 6 Mar 2023 15:04:36 -0600 Subject: [PATCH 08/18] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 32618dd567..9cb4c11b0a 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.mt maven-web-application war - 0.0.1 + 0.0.1-RELEASES maven-web-application From 7fae725653707bb4199fefc6732f4695a7a6043d Mon Sep 17 00:00:00 2001 From: christinedee <111324030+christinedee@users.noreply.github.com> Date: Mon, 6 Mar 2023 15:38:12 -0600 Subject: [PATCH 09/18] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 9cb4c11b0a..123aa2baf8 100644 --- a/pom.xml +++ b/pom.xml @@ -98,13 +98,13 @@ nexus Landmark Technologies Releases Nexus Repository - http://18.116.69.9:8181/deestories/repository/tesla-fe-releases/ + http://18.116.69.9:8181/deestories/repository/testapp-releases/ nexus Landmark Technologies Snapshot Nexus Repository - http://18.116.69.9:8181/deestories/repository/tesla-fe-snapshots/ + http://18.116.69.9:8181/deestories/repository/testapp-snapshot/ From ae128ad1669ba4259b052badd083dc76a90529f3 Mon Sep 17 00:00:00 2001 From: christinedee <111324030+christinedee@users.noreply.github.com> Date: Mon, 6 Mar 2023 16:11:45 -0600 Subject: [PATCH 10/18] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 123aa2baf8..0888ab5bc3 100644 --- a/pom.xml +++ b/pom.xml @@ -98,13 +98,13 @@ nexus Landmark Technologies Releases Nexus Repository - http://18.116.69.9:8181/deestories/repository/testapp-releases/ + http:172.31.17.123//:8081/repository/pipe-releases/ nexus Landmark Technologies Snapshot Nexus Repository - http://18.116.69.9:8181/deestories/repository/testapp-snapshot/ + http:http://172.31.17.123:8081/repository/pipe-snapshots/ From 4d7ce2442788b07bbd39789a1b93834804d4b4a5 Mon Sep 17 00:00:00 2001 From: christinedee <111324030+christinedee@users.noreply.github.com> Date: Mon, 6 Mar 2023 16:15:52 -0600 Subject: [PATCH 11/18] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 0888ab5bc3..659dae56cf 100644 --- a/pom.xml +++ b/pom.xml @@ -98,13 +98,13 @@ nexus Landmark Technologies Releases Nexus Repository - http:172.31.17.123//:8081/repository/pipe-releases/ + http:52.9.37.93//:8081/repository/pipe-releases/ nexus Landmark Technologies Snapshot Nexus Repository - http:http://172.31.17.123:8081/repository/pipe-snapshots/ + http:http://52.9.37.93:8081/repository/pipe-snapshots/ From 3b05349766a100a3631e2bd7742ee93adcc6e892 Mon Sep 17 00:00:00 2001 From: christinedee <111324030+christinedee@users.noreply.github.com> Date: Mon, 6 Mar 2023 16:17:11 -0600 Subject: [PATCH 12/18] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 659dae56cf..15050036ea 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.mt maven-web-application war - 0.0.1-RELEASES + 0.0.1-SNAPSHOT maven-web-application From edb3d81ae261f009457595ec491c6b019baf5841 Mon Sep 17 00:00:00 2001 From: christinedee <111324030+christinedee@users.noreply.github.com> Date: Mon, 6 Mar 2023 16:24:18 -0600 Subject: [PATCH 13/18] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 15050036ea..a5818a13d0 100644 --- a/pom.xml +++ b/pom.xml @@ -98,7 +98,7 @@ nexus Landmark Technologies Releases Nexus Repository - http:52.9.37.93//:8081/repository/pipe-releases/ + http://52.9.37.93:8081/repository/pipe-releases/ From a0069d08eae08b3f6c9a04fe4c8f75d1e282d83a Mon Sep 17 00:00:00 2001 From: christinedee <111324030+christinedee@users.noreply.github.com> Date: Mon, 6 Mar 2023 16:42:50 -0600 Subject: [PATCH 14/18] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index a5818a13d0..0169c45d53 100644 --- a/pom.xml +++ b/pom.xml @@ -104,7 +104,7 @@ nexus Landmark Technologies Snapshot Nexus Repository - http:http://52.9.37.93:8081/repository/pipe-snapshots/ + http://52.9.37.93:8081/repository/pipe-snapshots/ From 4ffc4d75a599cad8289dc3a90c2c471da6bbfeac Mon Sep 17 00:00:00 2001 From: christinedee <111324030+christinedee@users.noreply.github.com> Date: Mon, 6 Mar 2023 17:52:42 -0600 Subject: [PATCH 15/18] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 0169c45d53..bbe380ca27 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.mt maven-web-application war - 0.0.1-SNAPSHOT + 0.0.2-SNAPSHOT maven-web-application From 970510fdef56c4710a53d72945383bf8930facf0 Mon Sep 17 00:00:00 2001 From: christinedee <111324030+christinedee@users.noreply.github.com> Date: Mon, 6 Mar 2023 17:54:20 -0600 Subject: [PATCH 16/18] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index bbe380ca27..0169c45d53 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.mt maven-web-application war - 0.0.2-SNAPSHOT + 0.0.1-SNAPSHOT maven-web-application From a48c4a407b587482a85b2a31494c4ea9b0fdd513 Mon Sep 17 00:00:00 2001 From: christinedee <111324030+christinedee@users.noreply.github.com> Date: Mon, 6 Mar 2023 20:15:00 -0600 Subject: [PATCH 17/18] Create pipeline-declarative --- pipeline-declarative | 59 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 pipeline-declarative diff --git a/pipeline-declarative b/pipeline-declarative new file mode 100644 index 0000000000..d22e076dd6 --- /dev/null +++ b/pipeline-declarative @@ -0,0 +1,59 @@ +pipeline{ + agent any + tools { + maven "maven3.8.6" + } + stages { +stage('1cloning'){ + steps{ + sh "echo 'cloning the latest application version' " + git credentialsId: 'jkgitcred', url: 'https://github.com/christinedee/maven-web-application.git' //for private repo, generate pipeline syntax + //git "repolink" or sh "git clone repolink" only works for public repositories + } +} +stage('2Test+Build'){ +steps{ + sh "echo 'running JUnit-test-cases' " + sh "echo 'testing must be passed to create artifacts' " + sh "mvn clean package" +} +} +stage('3Codequality'){ + steps{ + sh "echo 'performing code quality analysis with sonarQb' " + sh "mvn sonar:sonar" + } +} + +stage('4uploadNexus'){ + steps{ + sh "echo 'uploading artifacts to nexus' " + sh "mvn deploy" + } +} +stage('5deploy2uat'){ + steps{ + deploy adapters: [tomcat9(credentialsId: 'deployment', path: '', url: 'http://54.215.245.202:8080/')], contextPath: '/opt/webapps', war: 'target/*war' + } + +} + +stage('6deploy2prod'){ + steps{ + deploy adapters: [tomcat9(credentialsId: 'deployment', path: '', url: 'http://54.215.245.202:8080/')], contextPath: '/opt/webapps', war: 'target/*war' + } +} +} + + post { + always{ + emailext body: 'check build status', recipientProviders: [buildUser(), contributor(), developers(), previous(), upstreamDevelopers()], subject: 'success', to: 'nayalea353@gmail.com' + } + success{ + emailext body: 'build and deployment is successful', recipientProviders: [buildUser(), contributor(), developers(), previous(), upstreamDevelopers()], subject: 'success', to: 'nayalea353@gmail.com' + } + failure{ + emailext body: 'build failed, check pipeline script', recipientProviders: [buildUser(), contributor(), developers(), previous(), upstreamDevelopers()], subject: 'success', to: 'nayalea353@gmail.com' + } + } +} From 0d5b06a9b822e325f154c628d7b943d92ca61b5a Mon Sep 17 00:00:00 2001 From: christinedee <111324030+christinedee@users.noreply.github.com> Date: Mon, 6 Mar 2023 20:55:37 -0600 Subject: [PATCH 18/18] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 82d63ae784..9e11ee68ed 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,7 @@ node { - def mavenHome = tool name: "maven3.6.2" + def mavenHome = tool name: "maven3.8.6" echo "GitHub BranhName ${env.BRANCH_NAME}" echo "Jenkins Job Number ${env.BUILD_NUMBER}"