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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2025-02-28 09:46:44 +00:00
|
|
|
stage('Test') {
|
|
|
|
steps {
|
2025-02-28 09:49:55 +00:00
|
|
|
sh 'mvn test -Dcheckstyle.skip=true'
|
2025-02-28 09:46:44 +00:00
|
|
|
}
|
|
|
|
}
|
2025-02-27 12:58:28 +00:00
|
|
|
stage('Build') {
|
|
|
|
steps {
|
2025-02-28 09:40:53 +00:00
|
|
|
sh 'mvn clean package -DskipTests -Dcheckstyle.skip=true'
|
2025-02-27 12:58:28 +00:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
archiveArtifacts artifacts: 'target/*.jar', allowEmptyArchive: true
|
|
|
|
}
|
|
|
|
}
|
2025-02-26 10:36:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|