ERROR: Fail to download libraries from server: SonarQube Integration with Teamcity

SonarQube Server 10.4.1.88267 : Deployed in Ubuntu 22.04 LTS through Docker Compose
Sonar Runner installed in Teamcity through plugins.jetbrains.com. Version 2020.1-11

Hello All,

I am trying to integrate sonarQube in my teamcity pipelines and am facing issues that says
" ERROR: Error during Sonar runner execution

ERROR: Fail to download libraries from serverERROR: Fail to download libraries from server".

My steps that I have followed so far are:

  1. Set Up a Sonarqube server in ubuntu 22.04.
  2. Install sonar-runner plugin in teamcity and provide URL and token of the sonarqube server

Once I run the build, the said error occurs.

I would appreciate some assistance here from the community. Thanks very much.

Hey there.

sonar-runner sounds very old!

Have you tried using this plugin? GitHub - JetBrains/TeamCity.SonarQubePlugin: A plugin for TeamCity server allowing you to configure and run SonarQube analysis from the CI

Thanks Colin. This works but we need to define some additional parameters in the Build configuration. SonarQube Scanner version should be Bundled (4.2.0.1873) (default is 2.4)

Had to do a lot of hit and trials. :smiley:

and JDK home path should also be defined as per your build vm settings.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.