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