From bb9b6e3e8ecce1bfa1d9f3743cfb4fe57442739e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Pailloncy?= Date: Mon, 6 Mar 2017 18:06:25 +0100 Subject: [PATCH] Try to enable parallel --- Jenkinsfile | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d660c89b1..89be8b24e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,6 +1,6 @@ pipeline { - - agent any + + agent none stages { @@ -28,26 +28,25 @@ pipeline { stage("tests") { steps { - - parallel ( - "static-analysis" : { - node("build") { - unstash "sources" - withMaven(maven:"M3") { - withSonarQubeEnv('sonarqube') { - sh 'mvn sonar:sonar' + parallel ( + "static-analysis": { + node("build") { + unstash "sources" + withMaven(maven:"M3") { + withSonarQubeEnv('sonarqube') { + sh 'mvn sonar:sonar' + } + } + } + }, + "performance-tests": { + node("test") { + echo "performance tests" + sh "ls -rtl" + sleep 20 } } - } - }, - "performance-tests": { - node("test") { - echo "performance tests" - sh "ls -rtl" - sleep 20 - } - } - ) + ) } }