diff --git a/cohort9 b/cohort9
index fcaf91c8..477afa6c 100644
--- a/cohort9
+++ b/cohort9
@@ -1,12 +1,12 @@
pipeline{
agent any
tools{
- maven "maven3.8.5"
+ maven "maven3.8.7"
}
stages{
stage("1.CodeClone"){
steps{
- git credentialsId: 'Github-Cred', url: 'https://github.com/acadalearning/web-app.git'
+ git credentialsId: 'GitHub-Credentials', url: 'https://github.com/raphnw/web-app.git'
}
}
stage("2. build"){
@@ -30,7 +30,7 @@
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'
+ deploy adapters: [tomcat9(credentialsId: 'Tomcat-cred', path: '', url: 'http://34.204.76.132:8080/')], contextPath: null, war: 'target/*.war'
}
}
stage("6. Approval"){
@@ -44,8 +44,32 @@
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'
+ deploy adapters: [tomcat9(credentialsId: 'Tomcat-cred', path: '', url: 'http://34.204.76.132: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'
+ }
+
+}
}
}
diff --git a/pom.xml b/pom.xml
index ff1d994c..a1631de0 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
@@ -21,9 +21,9 @@
5.1.2.RELEASE
4.11
1.2.17
- http://172.31.21.231:7000/
+ http://18.232.170.254:1000/
admin
- admin
+ admin123
UTF-8
UTF-8
@@ -97,13 +97,13 @@
nexus
ACADA Learning Releases Nexus Repository
- http://172.31.27.56:8081/repository/rbc-release/
+ http://172.31.16.154:3005/repository/project-A-release/
nexus
ACADA Learning Snapshot Nexus Repository
- http://172.31.27.56:8081/repository/rbc-snapshot/
+ http://172.31.16.154:3005/repository/project-A-snapshot/