Coverity Scan update

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. On which image are you building?

  2. 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. 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. 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 only staff will see it

Markdown

Attaching KB article:

» »

Read more…

Attach files

Up to 10MB each.

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

Recent Discussions