Coverity Scan update

odinserj's Avatar

odinserj

21 Oct, 2024 02:58 AM

Hello team,

Is it possible to update the Coverity Scan utility to their latest version? We are getting the following error when trying to submit the build results:

Error details: The Coverity Build tool version is no longer supported. Please download the latest version for your platform from https://scan.coverity.com/download

The following version is the latest one:
Version: 2023.12
Updated: June 22nd, 2024

  1. Support Staff 1 Posted by Owen McDonnell on 23 Oct, 2024 03:48 AM

    Owen McDonnell's Avatar

    On which image are you building?

  2. 2 Posted by odinserj on 23 Oct, 2024 04:00 AM

    odinserj's Avatar

    Hello Owen,

    Thank you for your response. The image is "Visual Studio 2022", and it
    shows that the 2022 version of Coverity Scan is installed there.

    [image: image.png]

  3. Support Staff 3 Posted by Owen McDonnell on 24 Oct, 2024 06:17 AM

    Owen McDonnell's Avatar

    Ok. I've added it to the list for inclusion on our next image update.
    In the meantime, you can try putting something like the script below into a .ps1 file in your repository and calling it in the install stage of your build. Hopefully that will let you continue without errors until we release a new image.

    
    Write-Host "Installing Coverity 2023.12.2..." -ForegroundColor Cyan
    $destPath = "$env:SYSTEMDRIVE\Tools\Coverity"
    if (Test-Path $destPath ) {
      echo "Deleting $($destPath)..."
      del $destPath -Recurse -Force
    }
    
    Write-Host "Downloading..."
    $zipPath = "$env:TEMP\cov-analysis-win64-2023.12.2.zip"
    (New-Object Net.WebClient).DownloadFile('https://appveyordownloads.blob.core.windows.net/misc/cov-analysis-win64-2023.12.2.zip', $zipPath)
    
    Write-Host "Unpacking..."
    $tempPath = "$env:TEMP\Coverity"
    7z x $zipPath -o"$tempPath" | Out-Null
    
    [IO.Directory]::Move("$tempPath\cov-analysis-win64-2023.12.2", $destPath)
    del $tempPath -Recurse -Force
    del $zipPath
    
    Add-Path "$destPath\bin"
    
    Write-Host "Installed" -ForegroundColor Green
    
  4. 4 Posted by odinserj on 25 Oct, 2024 03:28 AM

    odinserj's Avatar

    Hello Owen,

    Thank you so much, especially for the temporary solution. No problem, I can
    wait until the official image is updated -- prefer to avoid custom
    downloads during the continuous integration builds.

    Have a brilliant day and weekend!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac