Observed the following issue while using coverity plugin:
- Used the Coverity plugin for Build-Analysis-Commit operations..
- Build and Analysis ran successfully.
[MY-WORKSPACE] $ "C:\Program Files\Coverity\Coverity Static Analysis\bin\cov-build" --dir Report ant -f Code\MyProj\build.xml compile_debug
[MY-WORKSPACE] $ "C:\Program Files\Coverity\Coverity Static Analysis\bin\cov-analyze" --dir Report --java
- In commit command, the plugin didn't use the WORKSPACE folder as working directory instead switched to slave's root directory and the command failed.
$ "C:\Program Files\Coverity\Coverity Static Analysis\bin\cov-commit-defects" --dir Report --host xy.xyz.xy.xyz --dataport 9090 --stream ABC-XYZ --user abc-xyz
[ERROR] Specified intermediate directory
c:/jenkinsci/Report
doesn't contain any usable data
[Coverity] cov-commit-defects returned 2, aborting...
Build step 'Coverity' changed build result to FAILURE
It would be nice to have it fixed as it is already such a nice and feature rich plugin.
Also plugin can support to accept environment variables/Jenkins parameters in its configuration fields which currently it does not.