The pipeline fails randomly at SonarQubeAnalyze@5 with the following error but then somehow works again without any error and then fail again. We’re using Microsoft Hosted agent (ubuntu-latest) to run the pipeline. This issue just started recently, It was working fine before with out any errors.
Caused by: java.lang.IllegalStateException: Fail to download scanner-enterprise-9.9.0.65466-all.jar to /home/vsts/.sonar/cache/_tmp/fileCache16667193288174405898.tmp log.txt (5.4 KB)
Hi guys, from MS side we had review this issue and below you can find the insights of the investigation
Symptom: The Azure DevOps pipelines fails when are run on the Microsoft-hosted agents with Ubuntu images at the specific stage of the SonarQube task “SonarQubeAnalyze@5”
Cause: After investigating about this issue we found that it happens only when the Ubuntu image is used on the agent, due to the versions it comes with and its compatibilities with the SonarQube task. This because after using the Windows images for testing purposes on the agent, we confirmed that it works smoothly.
Resolution: We confirmed its root cause is linked to the SonarQube task because it seems that it is not working properly with our Ubuntu agents due to a compatibility issue from the task side. Due to this, as a work around we recommended to use the Windows images if you are using Azure DevOps
Note: Therefore this issue is not related to network configuration since we debug the root cause directly to the compatibility of the task with the MS hosted agents.