mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 07:15:49 +00:00
Updates jenkinsfile
Removes parallel execution of stages "test" and "integration test"
This commit is contained in:
parent
c98cfbc6b4
commit
827a7ff7bd
1 changed files with 11 additions and 13 deletions
24
Jenkinsfile
vendored
24
Jenkinsfile
vendored
|
@ -28,18 +28,16 @@ node {
|
||||||
}
|
}
|
||||||
|
|
||||||
String jacoco = "org.jacoco:jacoco-maven-plugin:0.8.1"
|
String jacoco = "org.jacoco:jacoco-maven-plugin:0.8.1"
|
||||||
parallel(
|
|
||||||
test: {
|
stage('Test') {
|
||||||
stage('Test') {
|
mvn "${jacoco}:prepare-agent test ${jacoco}:report"
|
||||||
mvn "${jacoco}:prepare-agent test ${jacoco}:report"
|
}
|
||||||
}
|
|
||||||
},
|
|
||||||
integrationTest: {
|
stage('Integration Test') {
|
||||||
stage('Integration Test') {
|
mvn "${jacoco}:prepare-agent-integration failsafe:integration-test failsafe:verify ${jacoco}:report-integration"
|
||||||
mvn "${jacoco}:prepare-agent-integration failsafe:integration-test failsafe:verify ${jacoco}:report-integration"
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
stage('Static Code Analysis') {
|
stage('Static Code Analysis') {
|
||||||
|
|
||||||
|
@ -49,7 +47,7 @@ node {
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
mvn.useDeploymentRepository([id: cesFqdn, url: "${cesUrl}/nexus", credentialsId: credentialsId, type: 'Nexus3'])
|
mvn.useDeploymentRepository([id: cesFqdn, url: "${cesUrl}/nexus", credentialsId: credentialsId, type: 'Nexus3'])
|
||||||
|
|
||||||
mvn.deployToNexusRepository('-Dmaven.javadoc.failOnError=false')
|
mvn.deployToNexusRepository('-Dmaven.javadoc.failOnError=false')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue