Using system environment variables

Coverity Documentation

Version
latest

To use a system environment variable for your report generator, write the path and filename where you would like the output file to be created and stored.

On Windows, you would set the environment variable like this:

set WRITE_REPORT_XML=<filename>

On Linux, you would set the environment variable like this:

export WRITE_REPORT_XML=<filename>

For this report generator, you can use the following two environment variables:

  • WRITE_ISSUES_JSON: This variable writes defect or issue data to the JSON output file. If a file with the same filename exists, it will be overwritten. A warning is issued if the file cannot be opened.

  • WRITE_REPORT_XML: This variable writes properties from the report's configuration to the XML output file. If a file with the same filename exists, it will be overwritten. A warning is issued if the file cannot be opened.