Create Jenkinsfile

added jenkins file
This commit is contained in:
Aishwarya Nandapurkar 2023-01-20 23:20:16 -08:00 committed by GitHub
parent 05468bc14b
commit dae94f5735
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

23
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,23 @@
pipeline {
agent any
stages {
stage('Build') {
steps {
git 'https://github.com/aishwarya-nandapurkar/spring-petclinic.git'
sh "./mvnw -DskipTests clean package"
}
}
stage('Test') {
steps {
sh './mvnw test'
}
post {
always {
junit 'target/surefire-reports/*.xml'
}
}
}
}
}