2025-02-26 10:36:50 +00:00
|
|
|
pipeline {
|
2025-02-27 08:36:21 +00:00
|
|
|
agent {
|
|
|
|
docker { image 'maven:3.8.5-openjdk-17' }
|
2025-02-26 10:45:58 +00:00
|
|
|
}
|
2025-02-27 08:36:21 +00:00
|
|
|
|
2025-02-26 10:36:50 +00:00
|
|
|
stages {
|
2025-02-27 12:58:28 +00:00
|
|
|
stage('Checkstyle') {
|
2025-02-26 10:36:50 +00:00
|
|
|
steps {
|
2025-02-26 10:45:58 +00:00
|
|
|
checkout scm
|
|
|
|
sh 'mvn checkstyle:checkstyle'
|
2025-02-26 10:36:50 +00:00
|
|
|
}
|
2025-02-27 12:58:28 +00:00
|
|
|
post {
|
|
|
|
always {
|
|
|
|
archiveArtifacts artifacts: 'target/checkstyle-result.xml', allowEmptyArchive: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
|
|
|
sh 'mvn clean package -DskipTests'
|
|
|
|
}
|
2025-02-28 08:19:45 +00:00
|
|
|
/*
|
2025-02-27 12:58:28 +00:00
|
|
|
post {
|
|
|
|
always {
|
|
|
|
archiveArtifacts artifacts: 'target/*.jar', allowEmptyArchive: true
|
|
|
|
}
|
|
|
|
}
|
2025-02-28 08:20:47 +00:00
|
|
|
*/
|
2025-02-26 10:36:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|