From b6db2215c13a95950ecd8454e0bdb4640a1b70bb Mon Sep 17 00:00:00 2001
From: taiwoabbey <99892967+taiwoabbey@users.noreply.github.com>
Date: Thu, 24 Mar 2022 08:18:05 -0500
Subject: [PATCH 01/13] Create jenkinsfile_boa
---
jenkinsfile_boa | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
create mode 100644 jenkinsfile_boa
diff --git a/jenkinsfile_boa b/jenkinsfile_boa
new file mode 100644
index 0000000..af8b156
--- /dev/null
+++ b/jenkinsfile_boa
@@ -0,0 +1,40 @@
+node{
+ def mavenHome = tool name:'maven3.8.5'
+ stage('1Clone'){
+ git branch: 'master', credentialsId: 'GitHub-Credentials', url: 'https://github.com/poliscasfino/Paypal-web-app'
+ }
+ stage('2MavenBuild'){
+ sh "${mavenHome}/bin/mvn clean package"
+ }
+ stage('3CodeQuality'){
+ 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://52.87.97.53:8080/')], contextPath: null, war: 'target/*war'
+ }
+ stage('6.Deploy2uat'){
+ sshagent(['TomcatKey']) {
+ // some block
+ sh "scp -o StrictHostKeyChecking=no target/*.war ec2-user@52.87.97.53:/opt/tomcat9/webapps/uat.war"
+}
+stage('7.approval'){
+ timeout(time:8, unit:'HOURS'){
+ input message: 'Please approve deployment to Production'
+ }
+ }
+ stage('8.Deploy2pro'){
+ sshagent(['TomcatKey']) {
+ sh "scp -o StrictHostKeyChecking=no target/*.war ec2-user@52.87.97.53:/opt/tomcat9/webapps/uat.war"
+}
+ }
+ stage('9.EmailAlerts'){
+ emailext body: '''Hello Idara,
+ Build status for boa app.
+ Regards
+ Taiwo''', recipientProviders: [developers(), requestor()], subject: 'Project Status', to: 'taiwoabbey147@yahoo.com'
+ }
+ }
+}
From 5dec40f14c77021f8f6443924335a636f5b6e917 Mon Sep 17 00:00:00 2001
From: taiwoabbey <99892967+taiwoabbey@users.noreply.github.com>
Date: Thu, 24 Mar 2022 08:25:01 -0500
Subject: [PATCH 02/13] Update Jenkinsfile_boa
---
Jenkinsfile_boa | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Jenkinsfile_boa b/Jenkinsfile_boa
index 494bb53..7110aa4 100644
--- a/Jenkinsfile_boa
+++ b/Jenkinsfile_boa
@@ -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: 'Git_Credentials', url: 'https://github.com/LandmakTechnology/paypal-web-app'
}
From e43c689d125601bcfb107d4714668c8ec9fd0056 Mon Sep 17 00:00:00 2001
From: taiwoabbey <99892967+taiwoabbey@users.noreply.github.com>
Date: Thu, 24 Mar 2022 08:34:32 -0500
Subject: [PATCH 03/13] Update Jenkinsfile_boa
---
Jenkinsfile_boa | 66 ++++++++++++++++++++++---------------------------
1 file changed, 30 insertions(+), 36 deletions(-)
diff --git a/Jenkinsfile_boa b/Jenkinsfile_boa
index 7110aa4..af8b156 100644
--- a/Jenkinsfile_boa
+++ b/Jenkinsfile_boa
@@ -1,46 +1,40 @@
node{
- def mavenHome = tool name: 'maven3.8.5'
- stage('1.Clone'){
- git branch: 'master', credentialsId: 'Git_Credentials', url: 'https://github.com/LandmakTechnology/paypal-web-app'
+ def mavenHome = tool name:'maven3.8.5'
+ stage('1Clone'){
+ git branch: 'master', credentialsId: 'GitHub-Credentials', url: 'https://github.com/poliscasfino/Paypal-web-app'
}
- stage('2.MavenBuild'){
+ stage('2MavenBuild'){
sh "${mavenHome}/bin/mvn clean package"
- // bat 'mvn package'
}
- stage('3.CodeQuality'){
+ stage('3CodeQuality'){
sh "${mavenHome}/bin/mvn sonar:sonar"
- }
- stage('4.UploadArtifacts'){
+ }
+ stage('4.UploadArtifacts'){
sh "${mavenHome}/bin/mvn deploy"
- }
- stage('6.Deploy2dev'){
- deploy adapters: [tomcat9(credentialsId: 'Tomcat_Credentials', path: '', url: 'http://18.207.210.70:8080/')], contextPath: null, war: 'target/web-app.war'
-}
- stage('5.Deploy2uat'){
- sshagent(['agentcredentials']) {
- sh "scp -o StrictHostKeyChecking=no target/*.war ec2-user@172.31.89.218:/opt/tomcat9/webapps/uat.war"
-
-}
-
- }
- stage('7.approval'){
+ }
+ stage('5.Deploy2dev'){
+ deploy adapters: [tomcat9(credentialsId: 'tomcat-credentials', path: '', url: 'http://52.87.97.53:8080/')], contextPath: null, war: 'target/*war'
+ }
+ stage('6.Deploy2uat'){
+ sshagent(['TomcatKey']) {
+ // some block
+ sh "scp -o StrictHostKeyChecking=no target/*.war ec2-user@52.87.97.53:/opt/tomcat9/webapps/uat.war"
+}
+stage('7.approval'){
timeout(time:8, unit:'HOURS'){
input message: 'Please approve deployment to Production'
- }
- }
- stage('8.Deploy2prod'){
- sshagent(['agentcredentials']) {
- sh "scp -o StrictHostKeyChecking=no target/*.war ec2-user@172.31.89.218:/opt/tomcat9/webapps/app.war"
-
+ }
+ }
+ stage('8.Deploy2pro'){
+ sshagent(['TomcatKey']) {
+ sh "scp -o StrictHostKeyChecking=no target/*.war ec2-user@52.87.97.53:/opt/tomcat9/webapps/uat.war"
}
-
- }
- stage('9.EmailAlerts'){
- emailext body: '''Hi
-
-Build status for boa app.
-
-Regards,
-Landmark Technologies''', recipientProviders: [developers(), requestor()], subject: 'Project status', to: 'boa@gmail.com'
}
-}
+ stage('9.EmailAlerts'){
+ emailext body: '''Hello Idara,
+ Build status for boa app.
+ Regards
+ Taiwo''', recipientProviders: [developers(), requestor()], subject: 'Project Status', to: 'taiwoabbey147@yahoo.com'
+ }
+ }
+}
From 764af4df746d8d8c5aa7d267456a0ba7b646de33 Mon Sep 17 00:00:00 2001
From: taiwoabbey <99892967+taiwoabbey@users.noreply.github.com>
Date: Thu, 24 Mar 2022 12:23:06 -0500
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 65e06ef..711a08a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -96,13 +96,13 @@
nexus
Landmark Technologies Releases Nexus Repository
- http://3.86.113.205:8888/repository/paypal-releases/
+ http://44.201.104.125:8081/repository/paypal-releases/
nexus
Landmark Technologies Snapshot Nexus Repository
- http://3.86.113.205:8888/repository/paypal-snapshots/
+ http://44.201.104.125:8081/repository/paypal-snapshots/
From 0ad63a082de8efe8982b7ae46168ddcc402fb72c Mon Sep 17 00:00:00 2001
From: taiwoabbey <99892967+taiwoabbey@users.noreply.github.com>
Date: Thu, 24 Mar 2022 12:33:27 -0500
Subject: [PATCH 05/13] Update pom.xml
---
pom.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 711a08a..6868be3 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:3.84.12.211:9000/
+ admind
admin
UTF-8
UTF-8
From 49e8488a4386fd5207d2902fb0a39888a16febbb Mon Sep 17 00:00:00 2001
From: taiwoabbey <99892967+taiwoabbey@users.noreply.github.com>
Date: Fri, 25 Mar 2022 09:51:03 -0500
Subject: [PATCH 06/13] Create jenkins27
---
jenkins27 | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
create mode 100644 jenkins27
diff --git a/jenkins27 b/jenkins27
new file mode 100644
index 0000000..c0d2106
--- /dev/null
+++ b/jenkins27
@@ -0,0 +1,47 @@
+node{
+ def mavenHome = tool name: 'maven3.8.4'
+ stage('1.Clone'){
+ git branch: 'master', credentialsId: 'Git_Credentials', url: 'https://github.com/LandmakTechnology/paypal-web-app'
+ }
+ stage('2.MavenBuild'){
+ sh "${mavenHome}/bin/mvn clean package"
+ // bat 'mvn package'
+ }
+ /* stage('3.CodeQuality'){
+ sh "${mavenHome}/bin/mvn sonar:sonar"
+ }
+ stage('4.UploadArtifacts'){
+ sh "${mavenHome}/bin/mvn deploy"
+ }
+ stage('6.Deploy2dev'){
+ deploy adapters: [tomcat9(credentialsId: 'Tomcat_Credentials', path: '', url: 'http://18.207.210.70:8080/')], contextPath: null, war: 'target/web-app.war'
+}
+ stage('5.Deploy2uat'){
+ sshagent(['agentcredentials']) {
+ // sh "scp -o StrictHostKeyChecking=no target/*.war ec2-user@172.31.89.218:/opt/tomcat9/webapps/uat.war"
+
+}
+
+ }
+ stage('7.approval'){
+ timeout(time:8, unit:'HOURS'){
+ input message: 'Please approve deployment to Production'
+ }
+ }
+ stage('8.Deploy2prod'){
+ sshagent(['agentcredentials']) {
+ sh "scp -o StrictHostKeyChecking=no target/*.war ec2-user@172.31.89.218:/opt/tomcat9/webapps/app.war"
+
+}
+
+ }
+ stage('9.EmailAlerts'){
+ emailext body: '''Hi
+
+Build status for boa app.
+
+Regards,
+Landmark Technologies''', recipientProviders: [developers(), requestor()], subject: 'Project status', to: 'boa@gmail.com'
+ }
+ */
+}
From bc119e859669da80c01f1a14825aa51cff5586bc Mon Sep 17 00:00:00 2001
From: taiwoabbey <99892967+taiwoabbey@users.noreply.github.com>
Date: Fri, 25 Mar 2022 09:58:57 -0500
Subject: [PATCH 07/13] Update jenkins27
---
jenkins27 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/jenkins27 b/jenkins27
index c0d2106..63eee52 100644
--- a/jenkins27
+++ b/jenkins27
@@ -38,7 +38,7 @@ node{
stage('9.EmailAlerts'){
emailext body: '''Hi
-Build status for boa app.
+Build status for boa app..
Regards,
Landmark Technologies''', recipientProviders: [developers(), requestor()], subject: 'Project status', to: 'boa@gmail.com'
From 785e76cb8b8a35985152a84574f88dd35835316f Mon Sep 17 00:00:00 2001
From: taiwoabbey <99892967+taiwoabbey@users.noreply.github.com>
Date: Fri, 25 Mar 2022 10:03:20 -0500
Subject: [PATCH 08/13] Rename jenkins27 to jenkins277
---
jenkins27 => jenkins277 | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename jenkins27 => jenkins277 (100%)
diff --git a/jenkins27 b/jenkins277
similarity index 100%
rename from jenkins27
rename to jenkins277
From 6839cf8193aaa6c46d54631b539d36cc874dfa0e Mon Sep 17 00:00:00 2001
From: taiwoabbey <99892967+taiwoabbey@users.noreply.github.com>
Date: Fri, 25 Mar 2022 10:17:58 -0500
Subject: [PATCH 09/13] Update jenkins277
---
jenkins277 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/jenkins277 b/jenkins277
index 63eee52..c0f29b7 100644
--- a/jenkins277
+++ b/jenkins277
@@ -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: 'Git_Credentials', url: 'https://github.com/LandmakTechnology/paypal-web-app'
}
From 51240132c6beaa9ccea5bd58ca4131b5345ab81a Mon Sep 17 00:00:00 2001
From: taiwoabbey <99892967+taiwoabbey@users.noreply.github.com>
Date: Fri, 25 Mar 2022 11:19:48 -0500
Subject: [PATCH 10/13] Update Jenkinsfile27
---
Jenkinsfile27 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Jenkinsfile27 b/Jenkinsfile27
index c0d2106..2e4d048 100644
--- a/Jenkinsfile27
+++ b/Jenkinsfile27
@@ -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: 'Git_Credentials', url: 'https://github.com/LandmakTechnology/paypal-web-app'
}
From ef01caae70ee4d7232ecf7a18db0516459d806fd Mon Sep 17 00:00:00 2001
From: taiwoabbey <99892967+taiwoabbey@users.noreply.github.com>
Date: Fri, 25 Mar 2022 11:22:46 -0500
Subject: [PATCH 11/13] Update JenkinsDeclarativePipelineScript
---
JenkinsDeclarativePipelineScript | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/JenkinsDeclarativePipelineScript b/JenkinsDeclarativePipelineScript
index fdae01e..de94570 100644
--- a/JenkinsDeclarativePipelineScript
+++ b/JenkinsDeclarativePipelineScript
@@ -2,7 +2,7 @@
pipeline{
agent any
tools {
- maven "maven3.8.4"
+ maven "maven3.8.5"
}
triggers {
pollSCM '* * * * * '
From eeadd138e79696f621c075b0c59874ee29ce773a Mon Sep 17 00:00:00 2001
From: taiwoabbey <99892967+taiwoabbey@users.noreply.github.com>
Date: Fri, 25 Mar 2022 11:23:15 -0500
Subject: [PATCH 12/13] Update JenkinsDeclarativePipelineScriptMarch2022
---
JenkinsDeclarativePipelineScriptMarch2022 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/JenkinsDeclarativePipelineScriptMarch2022 b/JenkinsDeclarativePipelineScriptMarch2022
index aaa61c5..114164c 100644
--- a/JenkinsDeclarativePipelineScriptMarch2022
+++ b/JenkinsDeclarativePipelineScriptMarch2022
@@ -1,7 +1,7 @@
pipeline{
agent any
tools{
- maven "maven3.8.4"
+ maven "maven3.8.5"
}
stages{
stage('1.clone'){
From b7a52e71aed94a140f350d2e755d39d585b7665e Mon Sep 17 00:00:00 2001
From: taiwoabbey <99892967+taiwoabbey@users.noreply.github.com>
Date: Sat, 26 Mar 2022 16:28:09 -0500
Subject: [PATCH 13/13] Update pom.xml
---
pom.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/pom.xml b/pom.xml
index 6868be3..d2b1346 100644
--- a/pom.xml
+++ b/pom.xml
@@ -92,6 +92,7 @@
+
nexus