mirror of
https://github.com/apache/struts.git
synced 2026-08-05 14:47:09 +00:00
Sets proper Sonar options in Jenkins pipeline and removes duplicated sonar properties
This commit is contained in:
Vendored
+2
-4
@@ -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 {
|
||||
|
||||
@@ -125,9 +125,9 @@
|
||||
<fluido-skin.version>1.9</fluido-skin.version>
|
||||
|
||||
<!-- Sonar -->
|
||||
<sonar.organization>apache</sonar.organization>
|
||||
<sonar.projectKey>apache_struts</sonar.projectKey>
|
||||
<sonar.moduleKey>${project.artifactId}</sonar.moduleKey>
|
||||
<sonar.organization>apache</sonar.organization>
|
||||
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
|
||||
<sonar.exclusions>apps/**</sonar.exclusions>
|
||||
|
||||
@@ -213,8 +213,6 @@
|
||||
<id>coverage</id>
|
||||
<properties>
|
||||
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
|
||||
<sonar.organization>apache</sonar.organization>
|
||||
<sonar.projectKey>apache_struts</sonar.projectKey>
|
||||
</properties>
|
||||
<build>
|
||||
<plugins>
|
||||
|
||||
Reference in New Issue
Block a user