From 6caa8de16ee698c16938eb92ccfa1d20fddd32ca Mon Sep 17 00:00:00 2001 From: Alex Baptista Date: Fri, 1 Dec 2017 19:53:32 -0200 Subject: [PATCH] include sonarqube step - FIX - JUNIT --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 043d0f83b..82932750b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,14 +7,14 @@ node('Slave_AWS'){ { //sh 'docker run --rm --name build_maven -v $(pwd):/app docker.io/maven:alpine bash -c "cd app;mvn clean install"' } - stage('Unit Test') - { - junit 'target/surefire-reports/*.xml' - } stage('Sonarqube') { sh 'docker run --rm --name maven -v $(pwd):/app docker.io/maven:alpine bash -c "cd app; mvn clean install cobertura:cobertura -Dcobertura.report.format=xml sonar:sonar -Dsonar.host.url=http://34.205.24.188:9000"' } + stage('Unit Test') + { + junit 'target/surefire-reports/*.xml' + } stage('Archive artifact') { archiveArtifacts 'target/spring-petclinic-1.5.1.jar'