From e06d6d5ded3538fa1b262975faf71a59332832b4 Mon Sep 17 00:00:00 2001
From: raphnw <120077030+raphnw@users.noreply.github.com>
Date: Wed, 8 Feb 2023 13:59:14 -0700
Subject: [PATCH 01/13] Delete cohort9
---
cohort9 | 51 ---------------------------------------------------
1 file changed, 51 deletions(-)
delete mode 100644 cohort9
diff --git a/cohort9 b/cohort9
deleted file mode 100644
index fcaf91c8..00000000
--- a/cohort9
+++ /dev/null
@@ -1,51 +0,0 @@
- pipeline{
- agent any
- tools{
- maven "maven3.8.5"
- }
- stages{
- stage("1.CodeClone"){
- steps{
- git credentialsId: 'Github-Cred', url: 'https://github.com/acadalearning/web-app.git'
- }
- }
- stage("2. build"){
- steps{
- sh "echo start of maven build"
- sh "mvn clean package"
- }
- }
- stage("3. Code Quality"){
- steps{
- sh "echo start of code quality"
- sh "mvn sonar:sonar"
- }
- }
- stage("4. Backup"){
- steps{
- sh "echo backup to nexus"
- sh "mvn deploy"
- }
- }
- stage("5. Deploy to UAT"){
- steps{
- sh "echo deploy to UAT Environment"
- deploy adapters: [tomcat9(credentialsId: 'tomcat-cred2', path: '', url: 'http://172.31.12.185:7000/')], contextPath: null, war: 'target/*.war'
- }
- }
- stage("6. Approval"){
- steps{
- sh "echo approval needed"
- timeout(time:2, unit:'DAYS'){
- input message:'Approval for Production eni'
- }
- }
-}
- stage("5. Deploy to Prod"){
- steps{
- sh "echo deploy to Prod Environment"
- deploy adapters: [tomcat9(credentialsId: 'tomcat-cred2', path: '', url: 'http://172.31.12.185:7000/')], contextPath: null, war: 'target/*.war'
- }
- }
-}
-}
From 7f00d98d796dd1cfc94642d8864c5669482eec47 Mon Sep 17 00:00:00 2001
From: raphnw <120077030+raphnw@users.noreply.github.com>
Date: Wed, 8 Feb 2023 14:26:15 -0700
Subject: [PATCH 02/13] Create Cohort9 file
Added declarative groovy script to the file
---
cohort9 | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 75 insertions(+)
create mode 100644 cohort9
diff --git a/cohort9 b/cohort9
new file mode 100644
index 00000000..14262885
--- /dev/null
+++ b/cohort9
@@ -0,0 +1,75 @@
+ pipeline{
+ agent any
+ tools{
+ maven "maven3.8.7"
+ }
+ stages{
+ stage("1.CodeClone"){
+ steps{
+ git credentialsId: 'GitHub-Credentials', url: 'https://github.com/raphnw/web-app.git'
+ }
+ }
+ stage("2. build"){
+ steps{
+ sh "echo start of maven build"
+ sh "mvn clean package"
+ }
+ }
+ stage("3. Code Quality"){
+ steps{
+ sh "echo start of code quality"
+ sh "mvn sonar:sonar"
+ }
+ }
+ stage("4. Backup"){
+ steps{
+ sh "echo backup to nexus"
+ sh "mvn deploy"
+ }
+ }
+ stage("5. Deploy to UAT"){
+ steps{
+ sh "echo deploy to UAT Environment"
+ deploy adapters: [tomcat9(credentialsId: 'Tomcat-cred', path: '', url: 'http://34.207.222.219:8080/')], contextPath: null, war: 'target/*.war'
+ }
+ }
+ stage("6. Approval"){
+ steps{
+ sh "echo approval needed"
+ timeout(time:2, unit:'DAYS'){
+ input message:'Approval for Production eni'
+ }
+ }
+}
+ stage("5. Deploy to Prod"){
+ steps{
+ sh "echo deploy to Prod Environment"
+ deploy adapters: [tomcat9(credentialsId: 'Tomcat-cred', path: '', url: 'http://34.207.222.219:8080/')], contextPath: null, war: 'target/*.war'
+ }
+ }
+ stage('8EmailNotification'){
+ steps{
+ sh "echo Email notification"
+ emailext attachLog: true, body: '''Hi,
+Please find the Build summary.
+
+$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
+
+Check console output at $BUILD_URL to view the results.
+
+Thanks
+DevOps Team
+''', subject: 'Build Success', to: 'raffytiti47@gmail.com'
+ }
+
+}
+
+ stage('9 Slack Notification'){
+ steps{
+ sh "echo Slack notification"
+ slackSend channel: 'slacknotification', message: "Please find status of pipeline Status-${currentBuild.currentResult} ${env.JOB_NAME} ${env.BUILD_NUMBER} ${env.BUILD_URL}", teamDomain: 'the-dream-teamglobal'
+ }
+
+}
+}
+}
From 01151f85e5ec20c3290cef8fb24a7bc60ff80818 Mon Sep 17 00:00:00 2001
From: raphnw <120077030+raphnw@users.noreply.github.com>
Date: Wed, 8 Feb 2023 14:57:32 -0700
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 ff1d994c..18ea469a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,7 +21,7 @@
5.1.2.RELEASE
4.11
1.2.17
- http://172.31.21.231:7000/
+ http://172.31.16.187:9000/
admin
admin
UTF-8
From 435f1bdd9601852add32a053853ff38cf0fb0082 Mon Sep 17 00:00:00 2001
From: raphnw <120077030+raphnw@users.noreply.github.com>
Date: Wed, 8 Feb 2023 15:19:04 -0700
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 18ea469a..45e8c1da 100644
--- a/pom.xml
+++ b/pom.xml
@@ -97,13 +97,13 @@
nexus
ACADA Learning Releases Nexus Repository
- http://172.31.27.56:8081/repository/rbc-release/
+ http://172.31.24.234:8081/repository/rbc-release/
nexus
ACADA Learning Snapshot Nexus Repository
- http://172.31.27.56:8081/repository/rbc-snapshot/
+ http://172.31.24.234:8081/repository/rbc-snapshot/
From 8e33ece14a24574f184c2d56014dcfeaf3c46dd3 Mon Sep 17 00:00:00 2001
From: raphnw <120077030+raphnw@users.noreply.github.com>
Date: Wed, 8 Feb 2023 15:23:17 -0700
Subject: [PATCH 05/13] Updated cohort9
Added declarative script to cohort9 file
---
cohort9 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cohort9 b/cohort9
index 14262885..477afa6c 100644
--- a/cohort9
+++ b/cohort9
@@ -30,7 +30,7 @@
stage("5. Deploy to UAT"){
steps{
sh "echo deploy to UAT Environment"
- deploy adapters: [tomcat9(credentialsId: 'Tomcat-cred', path: '', url: 'http://34.207.222.219:8080/')], contextPath: null, war: 'target/*.war'
+ deploy adapters: [tomcat9(credentialsId: 'Tomcat-cred', path: '', url: 'http://34.204.76.132:8080/')], contextPath: null, war: 'target/*.war'
}
}
stage("6. Approval"){
@@ -44,7 +44,7 @@
stage("5. Deploy to Prod"){
steps{
sh "echo deploy to Prod Environment"
- deploy adapters: [tomcat9(credentialsId: 'Tomcat-cred', path: '', url: 'http://34.207.222.219:8080/')], contextPath: null, war: 'target/*.war'
+ deploy adapters: [tomcat9(credentialsId: 'Tomcat-cred', path: '', url: 'http://34.204.76.132:8080/')], contextPath: null, war: 'target/*.war'
}
}
stage('8EmailNotification'){
From d4c539c1634671dda5dccbf31b3ea48c407be132 Mon Sep 17 00:00:00 2001
From: raphnw <120077030+raphnw@users.noreply.github.com>
Date: Sat, 18 Feb 2023 18:27:37 -0700
Subject: [PATCH 06/13] Update pom.xml
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 45e8c1da..d70cf039 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,7 +21,7 @@
5.1.2.RELEASE
4.11
1.2.17
- http://172.31.16.187:9000/
+ http://172.31.16.154:1000/
admin
admin
UTF-8
From e2c4f3c3ade1d9383f58d1e7b58392117a7ae87d Mon Sep 17 00:00:00 2001
From: raphnw <120077030+raphnw@users.noreply.github.com>
Date: Sat, 18 Feb 2023 18:58:19 -0700
Subject: [PATCH 07/13] Update pom.xml
---
pom.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index d70cf039..36751d69 100644
--- a/pom.xml
+++ b/pom.xml
@@ -97,13 +97,13 @@
nexus
ACADA Learning Releases Nexus Repository
- http://172.31.24.234:8081/repository/rbc-release/
+ http://172.31.16.154:3005/repository/project-A-release/
nexus
ACADA Learning Snapshot Nexus Repository
- http://172.31.24.234:8081/repository/rbc-snapshot/
+ http://172.31.16.154:3005/repository/project-A-snapshot/
From c7d91317569f04f6e3929772ac0f0630955ab17d Mon Sep 17 00:00:00 2001
From: raphnw <120077030+raphnw@users.noreply.github.com>
Date: Sat, 18 Feb 2023 19:42:17 -0700
Subject: [PATCH 08/13] Update pom.xml
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 36751d69..8cd6ea7b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
com.mt
maven-web-application
war
- 2.0.7-SNAPSHOT
+ 2.0.7-RELEASE
maven-web-application
From b72dce8860c3a63895b9656838a39170a8486c91 Mon Sep 17 00:00:00 2001
From: raphnw <120077030+raphnw@users.noreply.github.com>
Date: Sat, 18 Feb 2023 19:49:32 -0700
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 8cd6ea7b..8d4b09ba 100644
--- a/pom.xml
+++ b/pom.xml
@@ -97,13 +97,13 @@
nexus
ACADA Learning Releases Nexus Repository
- http://172.31.16.154:3005/repository/project-A-release/
+ http://54.147.187.28:3005/repository/project-A-release/
nexus
ACADA Learning Snapshot Nexus Repository
- http://172.31.16.154:3005/repository/project-A-snapshot/
+ http://54.147.187.28:3005/repository/project-A-snapshot/
From 9bde85d7120439696ee9fb13be8e453e866f42c1 Mon Sep 17 00:00:00 2001
From: raphnw <120077030+raphnw@users.noreply.github.com>
Date: Sat, 18 Feb 2023 19:54:42 -0700
Subject: [PATCH 10/13] Update pom.xml
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 8d4b09ba..8cbf0674 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
1.2.17
http://172.31.16.154:1000/
admin
- admin
+ admin123
UTF-8
UTF-8
From af0588895552b309e92c07ceb88c842d39f89df7 Mon Sep 17 00:00:00 2001
From: raphnw <120077030+raphnw@users.noreply.github.com>
Date: Sat, 18 Feb 2023 20:02:46 -0700
Subject: [PATCH 11/13] Update pom.xml
---
pom.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 8cbf0674..72fc096c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -97,13 +97,13 @@
nexus
ACADA Learning Releases Nexus Repository
- http://54.147.187.28:3005/repository/project-A-release/
+ http://172.31.16.154:3005/repository/project-A-release/
nexus
ACADA Learning Snapshot Nexus Repository
- http://54.147.187.28:3005/repository/project-A-snapshot/
+ http://172.31.16.154:3005/repository/project-A-snapshot/
From d7897744bafeb921015ca5d0d11e03bf9b5d57c3 Mon Sep 17 00:00:00 2001
From: raphnw <120077030+raphnw@users.noreply.github.com>
Date: Thu, 23 Feb 2023 20:41:33 -0700
Subject: [PATCH 12/13] Update pom.xml
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 72fc096c..c7c4dd90 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,7 +21,7 @@
5.1.2.RELEASE
4.11
1.2.17
- http://172.31.16.154:1000/
+ http://172.31.16.159:1000/
admin
admin123
UTF-8
From 509fb442f1337d19114cc4b463f4859279582203 Mon Sep 17 00:00:00 2001
From: raphnw <120077030+raphnw@users.noreply.github.com>
Date: Thu, 23 Feb 2023 20:44:30 -0700
Subject: [PATCH 13/13] Update pom.xml
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index c7c4dd90..a1631de0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,7 +21,7 @@
5.1.2.RELEASE
4.11
1.2.17
- http://172.31.16.159:1000/
+ http://18.232.170.254:1000/
admin
admin123
UTF-8