-
Bug
-
Resolution: Won't Fix
-
Critical
-
None
-
Jenkins Core - 1.656
Coverity Plugin - 1.8.0
Slave node (Centos 7) runs all builds (No builds on master)
[pr-static-analysis] $ /opt/cisco/trust/coverity-analysis/bin/cov-analyze --dir /home/lab1/workspace/pr-static-analysis/coverity -all --enable-constraint-fpp --paths 5000
Coverity Static Analysis version 8.1.0 on Linux 3.10.0-327.18.2.el7.x86_64 x86_64
Internal version numbers: 5511032c07 p-jasper1-push-24789.298.98Using 10 workers as limited by CPU(s)
Looking for translation units
Error: intermediate directory contains no translation units.
[Coverity] /opt/cisco/trust/coverity-analysis/bin/cov-analyze returned 2, aborting...
Build step 'Coverity' changed build result to FAILURE
Finished: FAILURE
This code works with 1.7.1.
We started investigating a bit and found a change which I was evaluating to possibly causing the issues. In 1.7.1, https://github.com/jenkinsci/coverity-plugin/blob/coverity-1.7.1/src/main/java/jenkins/plugins/coverity/CoverityLauncherDecorator.java#L227, and this works. In 1.8.0, https://github.com/jenkinsci/coverity-plugin/blob/be3051fbc6f5960917d05db7e40030396565bc37/src/main/java/jenkins/plugins/coverity/CoverityLauncherDecorator.java#L225 .. We are not sure exactly what if anything this may be evaluating to, need to dig deeper but it makes since if this isn't in the env that the build dir isn't getting evaluated properly, thus nothing to analyze at the end.