From e0da03c2627530c0e77eca94ee5351c733be795c Mon Sep 17 00:00:00 2001 From: Lukasz Lenart Date: Fri, 30 Sep 2022 10:38:15 +0200 Subject: [PATCH] Sets proper Sonar options in Jenkins pipeline and removes duplicated sonar properties --- Jenkinsfile | 6 ++---- pom.xml | 4 +--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 762d88240..2adf56ac9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -79,7 +79,7 @@ pipeline { } stage('Test') { steps { - sh './mvnw -B test' + sh './mvnw -B verify -Pcoverage -DskipAssembly' } post { always { @@ -88,18 +88,16 @@ pipeline { } } } -/* stage('Code Quality') { when { branch 'master' } steps { withCredentials([string(credentialsId: 'asf-struts-sonarcloud', variable: 'SONARCLOUD_TOKEN')]) { - sh './mvnw sonar:sonar -DskipAssembly -Dsonar.login=${SONARCLOUD_TOKEN}' + sh './mvnw -B -Pcoverage -DskipAssembly -Dsonar.login=${SONARCLOUD_TOKEN} sonar:sonar' } } } -*/ } post { always { diff --git a/pom.xml b/pom.xml index ff48f95f1..b80a4b2f6 100644 --- a/pom.xml +++ b/pom.xml @@ -125,9 +125,9 @@ 1.9 + apache apache_struts ${project.artifactId} - apache https://sonarcloud.io apps/** @@ -213,8 +213,6 @@ coverage https://sonarcloud.io - apache - apache_struts