-
Bug
-
Resolution: Not A Defect
-
Major
-
None
-
Jenkins 2.190.2
Warnings 7.1.0
Maven 3.6.2
I have a build that logs multiple warnings across multiple maven executions. However the warning plugin is only picking up the warnings from add-resource and test, not compile nor testCompile.
recordIssues tool: mavenConsole(), qualityGates: [[threshold: 1, type: 'TOTAL', unstable: true]]
Console log (abbreviated)
[INFO] --- license-maven-plugin:2.0.0:add-third-party (default) @ project --- [WARNING] [WARNING] licenseMerges will be overridden by licenseMergesUrl. [WARNING] [INFO] Writing third-party file to /var/lib/jenkins/node/workspace/job/target/generated-sources/license/THIRD-PARTY.tsv [INFO] [INFO] --- build-helper-maven-plugin:3.0.0:add-resource (add-resources) @ project --- [INFO] [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ project --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 31 resources [INFO] Copying 0 resource [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ project --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 94 source files to /var/lib/jenkins/node/workspace/job/target/classes [WARNING] /var/lib/jenkins/node/workspace/job/src/main/java/com/example/ResourceServerConfig.java:[20,19] org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerProperties in org.springframework.boot.autoconfigure.security.oauth2.resource has been deprecated ... [INFO] [INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ project --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 10 resources [INFO] [INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ project --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 37 source files to /var/lib/jenkins/node/workspace/job/target/test-classes [WARNING] /var/lib/jenkins/node/workspace/job/src/test/java/com/example/AuthorizationServerTests.java:[148,59] APPLICATION_JSON_UTF8 in org.springframework.http.MediaType has been deprecated ... [INFO] Results: [INFO] [WARNING] Tests run: 233, Failures: 0, Errors: 0, Skipped: 1 [INFO] ...