From dc9b84df0d9a0691c0afe017e94a46f012aec7ee Mon Sep 17 00:00:00 2001
From: Temmydayz <99374888+Temmydayz@users.noreply.github.com>
Date: Wed, 4 May 2022 19:58:41 -0400
Subject: [PATCH 1/4] Update pom.xml
---
pom.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 48d6c67..6c16e25 100644
--- a/pom.xml
+++ b/pom.xml
@@ -97,13 +97,13 @@
nexus
Landmark Technologies Releases Nexus Repository
- http://44.192.81.238:8888/mylandmarktech/repository/ebay-java-app-releases/
+ http://44.204.13.144:8081/repository/paypal-bts-releases/
nexus
Landmark Technologies Snapshot Nexus Repository
- http://44.192.81.238:8888/mylandmarktech/repository/ebay-java-app-snapshot/
+ http://44.204.13.144:8081/repository/paypal-bts-snapshot/
From df4cc71d5b0d18c1ac34d86f78dfbf86e94b31ad Mon Sep 17 00:00:00 2001
From: Temmydayz <99374888+Temmydayz@users.noreply.github.com>
Date: Mon, 9 May 2022 09:31:33 -0400
Subject: [PATCH 2/4] Update pom.xml
---
pom.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 6c16e25..e36e054 100644
--- a/pom.xml
+++ b/pom.xml
@@ -97,13 +97,13 @@
nexus
Landmark Technologies Releases Nexus Repository
- http://44.204.13.144:8081/repository/paypal-bts-releases/
+ http://54.84.23.217:8081/repository/pnc-releases/
nexus
Landmark Technologies Snapshot Nexus Repository
- http://44.204.13.144:8081/repository/paypal-bts-snapshot/
+ http://54.84.23.217:8081/repository/pnc_snapshots/
From c89ee7c711263f3811a1de3de3b713c2d45e53b5 Mon Sep 17 00:00:00 2001
From: Temmydayz <99374888+Temmydayz@users.noreply.github.com>
Date: Mon, 9 May 2022 09:54:59 -0400
Subject: [PATCH 3/4] Update pom.xml
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index e36e054..ab47d2f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,7 +21,7 @@
5.1.2.RELEASE
4.11
1.2.17
- http:3.238.135.186:9000/
+ http:44.204.50.101:9000/
admin
admin
UTF-8
From cd2605ce80f3652eb87c8145ccd030e596fa14e5 Mon Sep 17 00:00:00 2001
From: Temmydayz <99374888+Temmydayz@users.noreply.github.com>
Date: Mon, 9 May 2022 12:14:35 -0400
Subject: [PATCH 4/4] Create jenkinsfile-amzn
---
jenkinsfile-amzn | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
create mode 100644 jenkinsfile-amzn
diff --git a/jenkinsfile-amzn b/jenkinsfile-amzn
new file mode 100644
index 0000000..fa570fe
--- /dev/null
+++ b/jenkinsfile-amzn
@@ -0,0 +1,37 @@
+node{
+ def mavenHome = tool name: 'maven3.8.5'
+ stage('1Clone'){
+ git branch: 'master', credentialsId: 'Git-Credentials', url: 'https://github.com/Temmydayz/maven-web-apps'
+ }
+ stage('2MavenBuild'){
+ sh "${mavenHome}/bin/mvn clean package"
+ // bat 'mvn package'
+ }
+ stage('3CodeQuality'){
+ sh "${mavenHome}/bin/mvn sonar:sonar"
+ }
+ stage('4UploadArtifact'){
+ sh "${mavenHome}/bin/mvn deploy"
+}
+ stage ('5Deploy2UAT'){
+ deploy adapters: [tomcat9(credentialsId: 'Git-Credentials3', path: '', url: 'http://3.90.86.197:8000/')], contextPath: null, war: 'target/*war'
+ }
+ stage('7.approval'){
+ timeout(time:8, unit:'HOURS'){
+ input message: 'Please approve deployment to Production'
+ }
+ }
+ stage('8.Deploy2prod'){
+ sshagent(['agent1-credentials']) {
+ sh "scp -o StrictHostKeyChecking=no target/*.war ec2-user@3.90.86.197:/opt/tomcat9/webapps/zahra.war"
+ }
+ }
+ stage('9. EmailAlerts'){
+ emailext body: '''Hi,
+
+Please review build status for amazon app.
+
+Regards,
+Temmydayz''', recipientProviders: [developers(), requestor(), contributor()], subject: 'Project Status', to: 'ajifasron@gmail.com, akinsadeteslim@gmail.com'
+ }
+}