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
32 changes: 32 additions & 0 deletions jenkinsfile1
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
node {

def mavenHome = tool name: "3.8.6"

stage('1codeclone'){
git "https://github.com/jorge1j/maven-web-application"
}

stage('2test$build'){
sh "${mavenHome}/bin/mvn clean package"
}
stage('3codequality'){
sh "${mavenHome}/bin/mvn sonar:sonar"
}
stage('4uploadArtifact'){
sh "${mavenHome}/bin/mvn deploy"
}
/*
stage('5deploy2UAT'){
sh "sleep 40"
deploy adapters: [tomcat9(credentialsId: 'tomcatcredential', path: '', url: 'https://44.210.117.44')], contextPath: null, war: 'target/*war'
*/

}
stage('Approval'){
timeout(time:8, unit: 'HOURS' ) {
input message: 'Please verify and approve'

}


}
17 changes: 9 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>com.mt</groupId>
<artifactId>maven-web-application</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<version>0.0.1</version>

<name>maven-web-application</name>

Expand All @@ -21,9 +21,9 @@
<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:172.31.27.227:9000/</sonar.host.url>
<sonar.host.url>http:3.238.58.84:9000/</sonar.host.url>
<sonar.login>admin</sonar.login>
<sonar.password>admin@123</sonar.password>
<sonar.password>admin</sonar.password>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

Expand Down Expand Up @@ -92,18 +92,19 @@
</dependency>

</dependencies>



<distributionManagement>
<repository>
<repository>
<id>nexus</id>
<name>Landmark Technologies Releases Nexus Repository</name>
<url> http://172.31.18.29:8081/repository/ebay-bts-releases/</url>
<url> http://44.200.148.11:8081/repository/firstbank-fe-releases/</url>
</repository>

<snapshotRepository>
<id>nexus</id>
<name>Landmark Technologies Snapshot Nexus Repository </name>
<url>http://172.31.18.29:8081/repository/ebay-bts-snapshot/</url>
<url>http://44.200.148.11:8081/repository/firstbank-fe-snapshot/</url>
</snapshotRepository>

</distributionManagement>
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/jsps/home.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<h1 align="center">Welcome to Landmark Technologies.</h1>
<h2 align="center"> We are supporting the Ebay Black Friday Project.
Landmark Technologies is a software development company.
Class26 will run from October 2, 2021.
Class26 will run from October 2, 2022.
The shout of the King Jesus is in our midst. HE IS OUR SUCCESS ACCESS KEY</h2>
<hr>
<div style="text-align: center;">
Expand Down