add build stage to Jenkinsfile

This commit is contained in:
TomPGrid 2025-02-27 13:58:28 +01:00
parent eceaf61394
commit 82e86404ce

20
Jenkinsfile vendored
View file

@ -4,12 +4,28 @@ pipeline {
}
stages {
stage('Build') {
stage('Checkstyle') {
steps {
echo 'Bulding'
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
}
}
}
}
}