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

Development #6

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
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
39 changes: 39 additions & 0 deletions Jekinsfile-pipeline
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
node{
def mavenHome = tool name: 'maven3.8.2'

stage('1-Clone') {
git branch: 'development', credentialsId: 'Github_Credential', url: 'https://github.com/jenkinpipe/maven-web-application'
}
stage('2-mavenBuild') {
sh "${mavenHome}/bin/mvn clean package"
}
stage('3-CodeQuality') {
sh "${mavenHome}/bin/mvn sonar:sonar"
}
stage('4-UploadArtifacts') {
sh "${mavenHome}/bin/mvn deploy"
}
stage('5-Deploy-UAT') {
deploy adapters: [tomcat9(credentialsId: 'tomcatomcat', path: '', url: 'http://18.191.158.241:7000//')], contextPath: null, war: 'target/*war'
}
stage('6-EmailNotification') {
emailext body: '''Hello team,

The Ebay-project

Christopher Adebajo''', subject: 'Build Status', to: 'Developers'
}
stage('Approval'){
timeout(time:8, unit: 'HOURS'){
input message: 'Please verify and Approval'
}

}
stage('Prod-Deploy'){
deploy adapters: [tomcat9(credentialsId: 'tomcatomcat', path: '', url: 'http://18.191.158.241:7000//')], contextPath: null, war: 'target/*war'




}
}
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,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:3.96.196.171:9000/</sonar.host.url>
<sonar.host.url>http:13.59.67.97: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 @@ -98,13 +98,13 @@
<repository>
<id>nexus</id>
<name>Landmark Technologies Releases Nexus Repository</name>
<url>http://35.174.19.3:8081/repository/amazon-release/</url>
<url>http://3.128.201.6:8081/repository/ebay-bts-releases/</url>
</repository>

<snapshotRepository>
<id>nexus</id>
<name>Landmark Technologies Snapshot Nexus Repository </name>
<url>http://35.174.19.3:8081/repository/amazon-snapshot/</url>
<url>http://3.128.201.6:8081/repository/ebay-btc-snapshot/ </url>
</snapshotRepository>

</distributionManagement>
Expand Down
4 changes: 2 additions & 2 deletions src/main/webapp/jsps/home.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
Our anointed and extensive teaching approach takes our students with or without any IT Background to become Subject Matter Expect in IT, and DevOps automation.
Over 80% of our students are hired within 6 months of joining Landmark Technology.
Congratulations!! Welcome to Landmark Technology!! Welcome to your ENVIABLE IT CAREER.
We offer interview preparations and job assitance.
The King is in our midst. His name is JESUS. What a wonderful it is. HE IS OUR SUCCESS ACCESS KEY.
We offer interview preparations,comprehensive trainig and job assitance.
The King is in our midst and His Glory can be seen around us. His name is JESUS. What a wonderful it is. HE IS OUR SUCCESS ACCESS KEY.
Thanks for being an ambassador of Landmark Technology. President</h1>
<hr>
<div style="text-align: center;">
Expand Down