Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update #6

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
35 changes: 35 additions & 0 deletions Jenkinsfile_testin_prod
Original file line number Diff line number Diff line change
@@ -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: '[email protected]'
}
}
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<spring.version>5.1.2.RELEASE</spring.version>
<junit.version>4.11</junit.version>
<log4j.version>1.2.17</log4j.version>
<sonar.host.url>http://54.176.76.14:9000/</sonar.host.url>
<sonar.host.url>http://3.98.139.190:9000/</sonar.host.url>
<sonar.login>admin</sonar.login>
<sonar.password>admin</sonar.password>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -96,13 +96,13 @@
<repository>
<id>nexus</id>
<name>Landmark Technologies Releases Nexus Repository</name>
<url>http://52.53.227.31:8191/landmark/repository/tesla-fe-releases/</url>
<url>http://3.99.214.61:8081/repository/testing2rels/</url>
</repository>

<snapshotRepository>
<id>nexus</id>
<name>Landmark Technologies Snapshot Nexus Repository </name>
<url>http://52.53.227.31:8191/landmark/repository/tesla-fe-snapshots/</url>
<name>Landmark Technologies Snapshot Nexus Repository</name>
<url>http://3.99.214.61:8081/repository/testing2rels/</url>
</snapshotRepository>
</distributionManagement>

Expand Down
6 changes: 3 additions & 3 deletions src/main/webapp/jsps/home.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
</head>
</head>
<body>
<h1 align="center">Landmark Technology - Leaders in Software Delivery and DevOps Automation</h1>
<h2 align="center"> 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.
<h1 align="center">Landtoba Tech - Leaders in Software Delivery and DevOps Automation</h1>
<h2 align="center"> 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.
</h2>
<h2 align="center" >DevOps is good. JESUS IS LORD. I AM BLESSED. Production</h2>
<hr>
Expand Down