mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 12:15:50 +00:00
34 lines
656 B
Groovy
34 lines
656 B
Groovy
pipeline {
|
|
agent {
|
|
docker { image 'maven:3.8.5-openjdk-17' }
|
|
}
|
|
|
|
stages {
|
|
stage('Checkstyle') {
|
|
steps {
|
|
checkout scm
|
|
sh 'mvn checkstyle:checkstyle'
|
|
}
|
|
post {
|
|
always {
|
|
archiveArtifacts artifacts: 'target/checkstyle-result.xml', allowEmptyArchive: true
|
|
}
|
|
}
|
|
}
|
|
stage('Test') {
|
|
steps {
|
|
sh 'mvn test'
|
|
}
|
|
}
|
|
stage('Build') {
|
|
steps {
|
|
sh 'mvn clean package -DskipTests -Dcheckstyle.skip=true'
|
|
}
|
|
post {
|
|
always {
|
|
archiveArtifacts artifacts: 'target/*.jar', allowEmptyArchive: true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|