Skip to content

Commit a3b110d

Browse files
Record SpotBugs issues with Jenkins Warnings Next Generation plugin.
1 parent 0fb2877 commit a3b110d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pipeline {
5454
"--tests io.objectbox.FunctionalTestSuite " +
5555
"--tests io.objectbox.test.proguard.ObfuscatedEntityTest " +
5656
"--tests io.objectbox.rx.QueryObserverTest " +
57-
"assemble"
57+
"spotbugsMain assemble"
5858
}
5959
}
6060

@@ -92,7 +92,7 @@ pipeline {
9292
always {
9393
junit '**/build/test-results/**/TEST-*.xml'
9494
archiveArtifacts artifacts: 'tests/*/hs_err_pid*.log', allowEmptyArchive: true // Only on JVM crash.
95-
// currently unused: archiveArtifacts '**/build/reports/findbugs/*'
95+
recordIssues(tool: spotBugs(pattern: '**/build/reports/spotbugs/*.xml', useRankAsPriority: true))
9696

9797
googlechatnotification url: 'id:gchat_java', message: "${currentBuild.currentResult}: ${currentBuild.fullDisplayName}\n${env.BUILD_URL}",
9898
notifyFailure: 'true', notifyUnstable: 'true', notifyBackToNormal: 'true'

0 commit comments

Comments
 (0)