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

Coverity results not displayed if "Perform Coverity build, analysis and commit" is not selected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • coverity-plugin
    • Coverity Plugin 1.6.0
      Jenkins <any>

      There is a code block in IndioToolHandler, FresnoToolHandler, and PreFresnoToolHandler which fetches the defects for the snapshot ID just committed. This code block is conditional on invocationAssistance != null, even though invocationAssistance is not used in this code.

      The end result is that when the "Perform Coverity build, analysis and commit" checkbox is not selected, invocationAssistance will be null, and this code will not run. This means that the graphs are not populated and the link to the defects does not exist for the build.

      I noticed this because our Coverity server was just upgraded, and I upgraded the coverity-plugin from 1.2.4 (where the conditional did not exist and the feature worked).

              // Current conditional
              if(invocationAssistance != null && !publisher.isSkipFetchingDefects()) {
      
              // New conditional
              if(!publisher.isSkipFetchingDefects()) {
      

            kdang Ken Dang
            w60001 Christopher Shannon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: