Edit Jenkinsfile

This commit is contained in:
Viktoriia Karpenko 2024-12-11 18:08:54 +02:00
parent 277a954f1d
commit 755b8b319a

7
Jenkinsfile vendored
View file

@ -3,21 +3,18 @@ pipeline {
stages {
stage ('Checkstyle') {
steps {
sh 'mvn validate'
sh 'mvn checkstyle:checkstyle'
archiveArtifacts artifacts: 'target/checkstyle-report.xml', allowEmptyArchive: true
}
}
stage ('Test') {
steps {
sh 'echo "Starting tests..."'
sh 'mvn test'
junit 'target/surefire-reports/*.xml'
}
}
stage ('Build') {
steps {
sh 'echo "Building..."'
sh 'mvn clean package'
sh 'mvn clean package -DskipTests'
archiveArtifacts artifacts: 'target/*.jar', allowEmptyArchive: false
}
}