mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 12:15:50 +00:00
31 lines
573 B
Groovy
31 lines
573 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('Build') {
|
|
steps {
|
|
sh 'mvn clean package -DskipTests'
|
|
}
|
|
/*
|
|
post {
|
|
always {
|
|
archiveArtifacts artifacts: 'target/*.jar', allowEmptyArchive: true
|
|
}
|
|
}
|
|
}
|
|
*/
|
|
}
|
|
}
|