Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: 'oloruntobaoloyede@gmail.com'
}
}
36 changes: 36 additions & 0 deletions declarative_jenkins
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
pipeline{
agent any
tools {
maven "maven3.8.6"
}
stages {
stage('1GetCode'){
steps{
sh "echo 'cloning the latest application version' "
git branch: 'feature', url: 'https://github.com/KingToba/tesla-app.git'
}
}
stage('3Test+Build'){
steps{
sh "echo 'running JUnit-test-cases' "
sh "echo 'testing must passed to create artifacts ' "
sh "mvn clean package"
}
}
stage('4CodeQuality'){
steps{
sh "echo 'Perfoming CodeQualityAnalysis' "
sh "mvn sonar:sonar"
}
}
stage('5uploadNexus'){
steps{
sh "mvn deploy"
}
}
stage('8deploy2prod'){
steps{
deploy adapters: [tomcat9(credentialsId: 'tomcat-credentials', path: '', url: 'http://3.98.55.102:8080/')], contextPath: null, war: 'target/*war'
}
}
}
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