Update Jenkinsfile

master
Dmitry Isaenko 2020-10-28 19:10:08 +03:00
parent 0cb945a7f4
commit 050982f8ea
1 changed files with 14 additions and 9 deletions

23
Jenkinsfile vendored
View File

@ -7,20 +7,25 @@ pipeline {
} }
stages { stages {
stage('Build') {
steps {
sh 'mvn -B -DskipTests clean package'
}
post {
success {
archiveArtifacts artifacts: 'target/*.jar, target/*.exe'
}
}
}
stage('Test') { stage('Test') {
steps { steps {
sh 'mvn test' sh 'mvn test'
} }
} post {
stage('Build') { always {
steps { junit 'target/surefire-reports/*.xml'
sh 'mvn clean package' }
} }
} }
} }
post {
always {
archiveArtifacts artifacts: 'target/*.jar, target/*.exe', onlyIfSuccessful: true
}
}
} }