Update Jenkinsfile

This commit is contained in:
MihailInternul 2024-02-15 16:08:40 +02:00 committed by GitHub
parent 26d5411092
commit 266ef56ae5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

12
Jenkinsfile vendored
View file

@ -8,7 +8,9 @@ pipeline {
}
steps {
// Use Maven checkstyle plugin to generate a code style report
sh 'mvn checkstyle:checkstyle'
script {
sh 'M3/bin/mvn checkstyle:checkstyle'
}
archiveArtifacts artifacts: '**/target/checkstyle-result.xml', fingerprint: true
}
}
@ -18,7 +20,9 @@ pipeline {
}
steps {
// Run tests with Maven
sh 'mvn test'
script {
sh 'M3/bin/mvn test'
}
}
}
stage('Build') {
@ -27,7 +31,9 @@ pipeline {
}
steps {
// Build without tests with Maven
sh 'mvn clean package -DskipTests'
script {
sh 'M3/bin/mvn clean package -DskipTests'
}
}
}
stage('Create Docker Image MR') {