spring-petclinic/Jenkinsfile
2025-02-28 10:40:53 +01:00

31 lines
592 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 -Dcheckstyle.skip=true'
}
/*
post {
always {
archiveArtifacts artifacts: 'target/*.jar', allowEmptyArchive: true
}
}
*/
}
}
}