Jenkins¶
Robocop is supported by the Warnings plugin with a Sarif report.
Run Robocop with a Sarif report enabled in a Jenkins pipeline:
Sarif report is generated in the current directory under <project_name>.sarif.json file. # FIXME
Load the results using recordIssues step:
recordIssues enabledForFailure: true, tool: sarif(pattern: '.sarif.json', name: 'Robocop linter issues')
It is also possible to generate other reports and archive them using the archiveArtifacts plugin.
Read more on configuration in the plugin documentation
See SARIF for more information about the report and how to configure it.