This commit is contained in:
Thilakraj Kannadajeddu Mahabala 2019-06-10 18:35:09 +05:30
parent 4ae090b776
commit e4c37ff2ed

18
Jenkinsfile vendored
View file

@ -1,31 +1,13 @@
node { node {
agent any
tools{
maven "Maven-3.3.9"
jdk "JAVA_HOME"
}
stage('Checkout') { stage('Checkout') {
git 'https://github.com/ThilakrajKM/spring-petclinic' git 'https://github.com/ThilakrajKM/spring-petclinic'
} }
stage('Build') { stage('Build') {
// Run the maven build
withEnv(["MVN_HOME=$mvnHome"]) {
if (isUnix()) {
sh '"$MVN_HOME/bin/mvn" -Dmaven.test.failure.ignore clean package'
} else {
bat(/"%MVN_HOME%\bin\mvn" -Dmaven.test.failure.ignore clean package/)
}
}
} }
stage('Archive') { stage('Archive') {
junit allowEmptyResults: true, testResults: '**/target/**/TEST*.xml'
} }
} }