Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-38603

BZ 89440 - Coverity Plugin 1.8.0 fails on cov-analyze - intermediate directory contains no translation units

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Critical Critical
    • coverity-plugin
    • 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.98

      Using 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.

            kdang Ken Dang
            jwstric2 Jonathan Strickland
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: