mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 15:55:49 +00:00
Edit Jenkinsfile
This commit is contained in:
parent
b51b95031b
commit
916797136f
1 changed files with 15 additions and 1 deletions
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
|
@ -3,9 +3,23 @@ pipeline {
|
||||||
stages {
|
stages {
|
||||||
stage ('Checkstyle') {
|
stage ('Checkstyle') {
|
||||||
steps {
|
steps {
|
||||||
sh 'mvn validate'
|
sh 'mvn checkstyle:checkstyle'
|
||||||
archiveArtifacts artifacts: 'target/checkstyle-report.xml', allowEmptyArchive: true
|
archiveArtifacts artifacts: 'target/checkstyle-report.xml', allowEmptyArchive: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage ('Test') {
|
||||||
|
steps {
|
||||||
|
sh 'echo "Starting tests..."'
|
||||||
|
sh 'mvn test'
|
||||||
|
junit 'target/surefire-reports/*.xml'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage ('Build') {
|
||||||
|
steps {
|
||||||
|
sh 'echo "Building..."'
|
||||||
|
sh 'mvn clean package'
|
||||||
|
archiveArtifacts artifacts: 'target/*.jar', allowEmptyArchive: false
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue