mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
Edit Jenkinsfile
This commit is contained in:
parent
277a954f1d
commit
755b8b319a
1 changed files with 2 additions and 5 deletions
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
|
@ -3,21 +3,18 @@ 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') {
|
stage ('Test') {
|
||||||
steps {
|
steps {
|
||||||
sh 'echo "Starting tests..."'
|
|
||||||
sh 'mvn test'
|
sh 'mvn test'
|
||||||
junit 'target/surefire-reports/*.xml'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage ('Build') {
|
stage ('Build') {
|
||||||
steps {
|
steps {
|
||||||
sh 'echo "Building..."'
|
sh 'mvn clean package -DskipTests'
|
||||||
sh 'mvn clean package'
|
|
||||||
archiveArtifacts artifacts: 'target/*.jar', allowEmptyArchive: false
|
archiveArtifacts artifacts: 'target/*.jar', allowEmptyArchive: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue