Update Jenkinsfile

Change jacoco to recordCoverage
This commit is contained in:
Mateusz Pieła 2024-03-10 23:00:12 +01:00
parent 9b52bddf0f
commit c3bf38d911

6
Jenkinsfile vendored
View file

@ -3,7 +3,9 @@ pipeline {
stages { stages {
stage('Checkout') { stage('Checkout') {
git branch: 'master',url: 'https://git.horizonnet.eu/mateusz/java-helloworld.git' steps {
git branch: 'master',url: 'https://git.horizonnet.eu/mateusz/java-helloworld.git'
}
} }
stage('Build') { stage('Build') {
steps { steps {
@ -14,7 +16,7 @@ pipeline {
steps { steps {
sh 'mvn test' sh 'mvn test'
junit '**/target/surefire-reports/*.xml' junit '**/target/surefire-reports/*.xml'
jacoco recordCoverage(tools: [[]])
} }
} }
stage('Deploy') { stage('Deploy') {