jenkins fix
This commit is contained in:
parent
ee4e78a53a
commit
09b238d9c3
2 changed files with 10 additions and 5 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -22,7 +22,7 @@ pipeline {
|
|||
|
||||
stage('Reporting') {
|
||||
steps {
|
||||
sh '${M2_HOME}/bin/mvn --batch-mode -V -U -e checkstyle:checkstyle pmd:pmd pmd:cpd findbugs:findbugs spotbugs:spotbugs'
|
||||
sh '${M2_HOME}/bin/mvn --batch-mode -V -U -e pmd:pmd pmd:cpd findbugs:findbugs spotbugs:spotbugs'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -31,8 +31,6 @@ pipeline {
|
|||
always {
|
||||
junit testResults: '**/target/surefire-reports/TEST-*.xml'
|
||||
|
||||
recordIssues enabledForFailure: true, tools: [mavenConsole(), java(), javaDoc()]
|
||||
recordIssues enabledForFailure: true, tool: checkStyle()
|
||||
recordIssues enabledForFailure: true, tool: spotBugs()
|
||||
recordIssues enabledForFailure: true, tool: pmdParser(pattern: '**/target/pmd.xml')
|
||||
}
|
||||
|
|
11
pom.xml
11
pom.xml
|
@ -125,7 +125,7 @@
|
|||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<!-- <plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>findbugs-maven-plugin</artifactId>
|
||||
<version>3.0.4</version>
|
||||
|
@ -145,11 +145,18 @@
|
|||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugin>-->
|
||||
<plugin>
|
||||
<groupId>com.github.spotbugs</groupId>
|
||||
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||
<version>4.5.3.0</version>
|
||||
<configuration>
|
||||
<effort>Max</effort>
|
||||
<failOnError>false</failOnError>
|
||||
<threshold>Low</threshold>
|
||||
<xmlOutput>true</xmlOutput>
|
||||
<excludeFilterFile>findbugs-excludes.xml</excludeFilterFile>
|
||||
</configuration>
|
||||
<dependencies>
|
||||
<!-- overwrite dependency on spotbugs if you want to specify the version of spotbugs -->
|
||||
<dependency>
|
||||
|
|
Loading…
Reference in a new issue