mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 05:55:51 +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') {
|
||||
mvn "-DskipTests clean package"
|
||||
mvn 'clean package -DskipTests'
|
||||
|
||||
// archive artifact
|
||||
archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true
|
||||
archiveArtifacts artifacts: '**/target/*.jar'
|
||||
}
|
||||
|
||||
String jacoco = "org.jacoco:jacoco-maven-plugin:0.8.1"
|
||||
|
@ -37,7 +36,7 @@ node {
|
|||
},
|
||||
integrationTest: {
|
||||
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