Skip to content

Commit 5f39dd7

Browse files
committed
Upload spotbugs report to SonarQube
Includes removing the findbugs filter file And using parent spotbugs configuration QA-6024
1 parent 749e8a1 commit 5f39dd7

File tree

3 files changed

+1
-41
lines changed

3 files changed

+1
-41
lines changed

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pipeline {
6161
steps {
6262
withMaven(jdk: "${JDK_VERSION}", maven: 'M3', mavenLocalRepo: '.repository') {
6363
withSonarQubeEnv('Sonar') {
64-
sh 'mvn --activate-profiles test -DgsExec="${gsExec}" -DcompareExec="${compareExec}" -Dmaven.test.skip=false -Dmaven.test.failure.ignore=false -Dmaven.javadoc.skip=true org.jacoco:jacoco-maven-plugin:prepare-agent verify org.jacoco:jacoco-maven-plugin:report sonar:sonar ' + sonarBranchName + ' ' + sonarBranchTarget
64+
sh 'mvn --activate-profiles test -DgsExec="${gsExec}" -DcompareExec="${compareExec}" -Dmaven.test.skip=false -Dmaven.test.failure.ignore=false -Dmaven.javadoc.skip=true org.jacoco:jacoco-maven-plugin:prepare-agent verify org.jacoco:jacoco-maven-plugin:report -Dsonar.java.spotbugs.reportPaths="target/spotbugs.xml" sonar:sonar ' + sonarBranchName + ' ' + sonarBranchTarget
6565
}
6666
}
6767
}

findbugs-filter.xml

Lines changed: 0 additions & 30 deletions
This file was deleted.

pom.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,6 @@
8989
</resource>
9090
</resources>
9191
<plugins>
92-
<plugin>
93-
<groupId>com.github.spotbugs</groupId>
94-
<artifactId>spotbugs-maven-plugin</artifactId>
95-
<version>${spotbugs.version}</version>
96-
<configuration>
97-
<threshold>High</threshold>
98-
<failOnError>true</failOnError>
99-
<excludeFilterFile>findbugs-filter.xml</excludeFilterFile>
100-
</configuration>
101-
</plugin>
10292
<plugin>
10393
<groupId>external.atlassian.jgitflow</groupId>
10494
<artifactId>jgitflow-maven-plugin</artifactId>

0 commit comments

Comments
 (0)