문제

How can I configure so that warnings that are issued by the Checker Framework are picked up and reported in Jenkins (e.g. by using the Analysis Collector Plugin)?

For the record, I am using maven and the checkersplugin with the <failOnError> configuration set to false, and the Checker Framework warnings are displayed in the console output in Jenkins.

도움이 되었습니까?

해결책

You are not required to use a special Jenkins plugin such as Analysis Collector.

The Checker Framework issues warnings and errors that are identical to those of javac (because the Checker Framework is a plug-in to javac). Therefore, whatever mechanism you already use to make Jenkins report compiler warnings and errors will work for the Checker Framework.

As a tip, if you are using the -Awarns command-line argument to treat pluggable type-checking errors as warnings, then you will also want to configure the Jenkins task as follows: Set "post-build actions" to "scan for compiler warnings", with parser "Java compiler".

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top