Skip to content

Commit

Permalink
CodeCommit1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
umangsaltuniv committed Jul 3, 2020
1 parent 51a4297 commit 89162cc
Show file tree
Hide file tree
Showing 43 changed files with 3,124 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Jenkinsfile.txt
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******
}
}
104 changes: 104 additions & 0 deletions Reference/Jenkinsfile.txt
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******
}
}
Loading

0 comments on commit 89162cc

Please sign in to comment.