From 827a7ff7bd393b68b37d3a3688caf5e7e1c2cb10 Mon Sep 17 00:00:00 2001 From: CloudoguNguyen Date: Mon, 4 Feb 2019 14:39:34 +0100 Subject: [PATCH] Updates jenkinsfile Removes parallel execution of stages "test" and "integration test" --- Jenkinsfile | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2519f657b..b4bfb1268 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,18 +28,16 @@ node { } String jacoco = "org.jacoco:jacoco-maven-plugin:0.8.1" - parallel( - test: { - stage('Test') { - mvn "${jacoco}:prepare-agent test ${jacoco}:report" - } - }, - integrationTest: { - stage('Integration Test') { - mvn "${jacoco}:prepare-agent-integration failsafe:integration-test failsafe:verify ${jacoco}:report-integration" - } - } - ) + + stage('Test') { + mvn "${jacoco}:prepare-agent test ${jacoco}:report" + } + + + stage('Integration Test') { + mvn "${jacoco}:prepare-agent-integration failsafe:integration-test failsafe:verify ${jacoco}:report-integration" + } + stage('Static Code Analysis') { @@ -49,7 +47,7 @@ node { } 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') }