diff --git a/Jenkinsfile_testin_prod b/Jenkinsfile_testin_prod new file mode 100644 index 0000000..671f0cc --- /dev/null +++ b/Jenkinsfile_testin_prod @@ -0,0 +1,35 @@ +node{ + def mavenHome = tool name: 'maven3.8.6' + stage('1cloneCode'){ + git "https://github.com/KingToba/tesla-app.git" + } + + stage('2test and build'){ + sh "${mavenHome}/bin/mvn clean package" + } + + stage('3codeQuality'){ + sh "${mavenHome}/bin/mvn sonar:sonar" + } + stage('4uploadArtifacts'){ + sh "${mavenHome}/bin/mvn deploy" + } + stage('5deploy2UAT'){ + sh "echo 'deploy to UAT' " + deploy adapters: [tomcat9(credentialsId: 'tomcat-credentials', path: '', url: 'http://3.98.55.102:8080/')], contextPath: null, war: 'target/*war' +} +stage('6approvalGate'){ + sh "echo 'ready for review' " + timeout(time:5, unit:'DAYS') { + input message: 'Application ready for deployment, Please review and approve' + } +} + stage('7deploy2Prod'){ + deploy adapters: [tomcat9(credentialsId: 'tomcat-credentials', path: '', url: 'http://3.98.55.102:8080/')], contextPath: null, war: 'target/*war' +} +stage('8emailNotification'){ + emailext body: '''Hi all +check build status. +landmark tech''', recipientProviders: [contributor(), buildUser()], subject: 'build status', to: 'oloruntobaoloyede@gmail.com' +} +} diff --git a/pom.xml b/pom.xml index a163c4f..f9f776e 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ 5.1.2.RELEASE 4.11 1.2.17 - http://54.176.76.14:9000/ + http://3.98.139.190:9000/ admin admin UTF-8 @@ -96,13 +96,13 @@ nexus Landmark Technologies Releases Nexus Repository - http://52.53.227.31:8191/landmark/repository/tesla-fe-releases/ + http://3.99.214.61:8081/repository/testing2rels/ nexus - Landmark Technologies Snapshot Nexus Repository - http://52.53.227.31:8191/landmark/repository/tesla-fe-snapshots/ + Landmark Technologies Snapshot Nexus Repository + http://3.99.214.61:8081/repository/testing2rels/ diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index cfc0fc6..26dc041 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -9,9 +9,9 @@ -

Landmark Technology - Leaders in Software Delivery and DevOps Automation

-

Welcome to Landmark Technology.......We have a demo on DevOps E Degree with Linux and AWS on Sunday Oct 9, 2022 at 3PM EST for our new batch. - Landmark Technology Tesla web application project2. +

Landtoba Tech - Leaders in Software Delivery and DevOps Automation

+

Welcome to Landmark Technology.......We have a demo on DevOps E Degree with Linux and AWS on Sunday Oct 9, 2012 at 3PM EST fou our new batch. + Landmark Technology Tesla web application project3.

DevOps is good. JESUS IS LORD. I AM BLESSED. Production