Connection to sonarQube server failed RRS feed

  • Question

  • [error]D:\ECAgent\_work\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.2.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe failed with return code: 1


    Here is the log of the Prepare analysis on SonarQube step:

    2018-04-19T07:03:18.9117692Z ##[section]Starting: Prepare analysis on SonarQube

    2018-04-19T07:03:18.9327714Z ==============================================================================

    2018-04-19T07:03:18.9337712Z Task         : Prepare Analysis Configuration

    2018-04-19T07:03:18.9337712Z Description  : Prepare SonarQube analysis configuration

    2018-04-19T07:03:18.9337712Z Version      : 4.1.1

    2018-04-19T07:03:18.9337712Z Author       : sonarsource

    2018-04-19T07:03:18.9337712Z Help         : [More Information]

    2018-04-19T07:03:18.9337712Z ==============================================================================

    2018-04-19T07:03:20.0258705Z [command]D:\AgentCW\_work\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.1.1\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe begin /k:01637d23-4795-453b-99b5-a93be77b6caa

    2018-04-19T07:03:20.3068939Z SonarScanner for MSBuild 4.1.1

    2018-04-19T07:03:20.3078941Z Using the .NET Framework version of the Scanner for MSBuild

    2018-04-19T07:03:20.4509076Z Default properties file was found at D:\AgentCW\_work\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.1.1\classic-sonar-scanner-msbuild\SonarQube.Analysis.xml

    2018-04-19T07:03:20.4519072Z Loading analysis properties from D:\AgentCW\_work\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.1.1\classic-sonar-scanner-msbuild\SonarQube.Analysis.xml

    2018-04-19T07:03:20.4519072Z Pre-processing started.

    2018-04-19T07:03:20.4579106Z Preparing working directories...

    2018-04-19T07:03:20.5849514Z 09:03:20.582  Updating build integration targets...

    2018-04-19T07:03:20.6289728Z 09:03:20.628  Fetching analysis configuration settings...

    2018-04-19T07:03:21.5060016Z 09:03:21.502  Failed to request and parse 'https://sonar.int.tieto.com/api/server/version': The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.

    2018-04-19T07:03:21.5180007Z 09:03:21.503  A server certificate could not be validated. Possible cause: you are using a self-signed SSL certificate but the certificate has not been installed on the client machine. Please make sure that you can access without encountering certificate errors.

    2018-04-19T07:03:21.5180007Z 09:03:21.505  Pre-processing failed. Exit code: 1

    2018-04-19T07:03:21.5360041Z ##[error]D:\AgentCW\_work\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.1.1\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe failed with return code: 1

    2018-04-19T07:03:21.5450038Z ##[section]Finishing: Prepare analysis on SonarQube

    Tuesday, April 24, 2018 4:49 AM

All replies

  • Hi ANIL,

    Thanks for posting here.

    This forum is about the MSBuild(Discuss the Microsoft build engine aka MSBuild. Topics including: usage of MSBuild, build customization, and MSBuild extensibility via tasks, loggers and hosting.).

    As your issue is more related to the sonarqube, I suggest that you could open an new thread on the sonarqube forum. More community members on that forum may further look at your issue and provide more suggestions.

    If you have some MSBuild questions, please feel free to contact us. We will try our best to give you a solution.

    Thanks for your understanding and cooperation.

    MSDN Community Support Please remember to click Mark as Answer. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, April 24, 2018 7:06 AM