-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
51a4297
commit 89162cc
Showing
43 changed files
with
3,124 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
pipeline { | ||
agent any | ||
stages { | ||
|
||
|
||
// ******ALL CODE TO BE ADDED BELOW THIS COMMENT****** | ||
|
||
|
||
|
||
// ******ALL CODE TO BE ADDED ABOVE THIS COMMENT****** | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
pipeline { | ||
agent any | ||
stages { | ||
|
||
|
||
// ******ALL CODE TO BE ADDED BELOW THIS COMMENT****** | ||
|
||
|
||
//Code starts for stage Clean | ||
stage('Clean') { | ||
steps { | ||
sh 'mvn clean' | ||
} | ||
} | ||
//Code ends for stage Clean | ||
|
||
|
||
|
||
//Code starts for stage PMD | ||
stage('PMD') { | ||
steps { | ||
sh 'mvn site' | ||
} | ||
} | ||
//Code ends for stage PMD | ||
|
||
|
||
|
||
//Code starts for stage Compile | ||
stage('Compile') { | ||
steps { | ||
sh 'mvn compile' | ||
} | ||
} | ||
//Code Ends for stage Compile | ||
|
||
|
||
//Code starts for stage Unit Test | ||
stage('Unit Test') { | ||
steps { | ||
sh 'mvn test' | ||
} | ||
post { | ||
always { | ||
junit 'target/surefire-reports/*.xml' | ||
} | ||
} | ||
} | ||
//Code ends for stage Unit Test | ||
|
||
|
||
|
||
//Code starts for stage JaCoCo | ||
stage('JaCoCo') { | ||
steps { | ||
sh 'mvn jacoco:report' | ||
} | ||
} | ||
//Code ends for stage JaCoCo | ||
|
||
|
||
|
||
//Code starts for stage Install | ||
stage('Install') { | ||
steps { | ||
sh 'mvn install -DskipTests' | ||
} | ||
} | ||
//Code ends for stage Install | ||
|
||
|
||
//Code starts for stage Tomcat Server Up | ||
stage('Tomcat Server Up') { | ||
steps { | ||
sh '/tmp/apache-tomcat-9.0.20/bin/startup.sh' | ||
} | ||
} | ||
//Code ends for stage Tomcat Server Up | ||
|
||
|
||
|
||
//Code starts for stage War Deployed on Tomcat Server | ||
stage('War Deployed on Tomcat Server') { | ||
steps { | ||
sh 'cp /var/jenkins_home/workspace/verity-devops/target/ExpenseApp-1.war /tmp/apache-tomcat-9.0.20/webapps' | ||
} | ||
} | ||
//Code ends for stage War Deployed on Tomcat Server | ||
|
||
|
||
|
||
//Code starts for stage System Test | ||
stage('System Test') { | ||
steps { | ||
//Change git url below as per your forked github repository URL | ||
git url: 'https://github.com/umangsaltuniv/EMSystemTests.git' | ||
sh 'mvn -Dtest=ExpenseManagerSystemTest test' | ||
} | ||
} | ||
//Code ends for stage System Test | ||
|
||
// ******ALL CODE TO BE ADDED ABOVE THIS COMMENT****** | ||
} | ||
} |
Oops, something went wrong.