mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 07:15:49 +00:00
Jenkins: Verify integration tests.
Makes Jenkins fail on failing integration test.
This commit is contained in:
parent
96703840b6
commit
6efb656930
1 changed files with 3 additions and 4 deletions
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
|
@ -22,10 +22,9 @@ node {
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
mvn "-DskipTests clean package"
|
mvn 'clean package -DskipTests'
|
||||||
|
|
||||||
// archive artifact
|
archiveArtifacts artifacts: '**/target/*.jar'
|
||||||
archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String jacoco = "org.jacoco:jacoco-maven-plugin:0.8.1"
|
String jacoco = "org.jacoco:jacoco-maven-plugin:0.8.1"
|
||||||
|
@ -37,7 +36,7 @@ node {
|
||||||
},
|
},
|
||||||
integrationTest: {
|
integrationTest: {
|
||||||
stage('Integration Test') {
|
stage('Integration Test') {
|
||||||
mvn "${jacoco}:prepare-agent-integration failsafe:integration-test ${jacoco}:report-integration"
|
mvn "${jacoco}:prepare-agent-integration failsafe:integration-test failsafe:verify ${jacoco}:report-integration"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue