Prepare Analysis Configuration issue

I integrate sonarqube 9.3 version into Azure Devops. Added Prepare Analysis Configuration tasks into my build defination. when I run build I got below error


Hey there.

Can you post your pipeline YAML configuration?

Here is the Build defination

can I use azure hosted agent or self hosted

You can use both.

  1. Could you run a build with Enable system diagnostics enabled and share the log for the Prepare step please?

image

  1. are you passing any additional settings in the Advanced section of the Prepare step?

Hi ,

Here is the detailed log :

2022-03-31T19:10:52.2362745Z ##[debug]Evaluating condition for step: 'Prepare analysis on SonarQube'
2022-03-31T19:10:52.2364339Z ##[debug]Evaluating: succeeded()
2022-03-31T19:10:52.2364776Z ##[debug]Evaluating succeeded:
2022-03-31T19:10:52.2365805Z ##[debug]=> True
2022-03-31T19:10:52.2366307Z ##[debug]Result: True
2022-03-31T19:10:52.2366748Z ##[section]Starting: Prepare analysis on SonarQube
2022-03-31T19:10:52.2635162Z ==============================================================================
2022-03-31T19:10:52.2635446Z Task         : Prepare Analysis Configuration
2022-03-31T19:10:52.2635680Z Description  : Prepare SonarQube analysis configuration
2022-03-31T19:10:52.2635875Z Version      : 5.4.0
2022-03-31T19:10:52.2636030Z Author       : sonarsource
2022-03-31T19:10:52.2636349Z Help         : Version: 5.4.0. [More Information]([http://redirect.sonarsource.com/doc/install-configure-scanner-tfs-ts.html](http://redirect.sonarsource.com/doc/install-configure-scanner-tfs-ts.html))
2022-03-31T19:10:52.2636704Z ==============================================================================
2022-03-31T19:10:52.3015523Z ##[debug]Using node path: C:\agents\2.202.0\externals\node10\bin\node.exe
2022-03-31T19:10:52.6407988Z ##[debug]agent.TempDirectory=D:\a\_temp
2022-03-31T19:10:52.6429938Z ##[debug]loading inputs and endpoints
2022-03-31T19:10:52.6447235Z ##[debug]loading ENDPOINT_AUTH_7f560a96-3568-45a1-a2e4-f2aa98e673a0
2022-03-31T19:10:52.6633988Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_7f560a96-3568-45a1-a2e4-f2aa98e673a0_USERNAME
2022-03-31T19:10:52.6636552Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2022-03-31T19:10:52.6638284Z ##[debug]loading ENDPOINT_AUTH_SCHEME_7f560a96-3568-45a1-a2e4-f2aa98e673a0
2022-03-31T19:10:52.6639748Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2022-03-31T19:10:52.6641143Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2022-03-31T19:10:52.6643113Z ##[debug]loading INPUT_CLIPROJECTVERSION
2022-03-31T19:10:52.6644490Z ##[debug]loading INPUT_CLISOURCES
2022-03-31T19:10:52.6645796Z ##[debug]loading INPUT_CONFIGFILE
2022-03-31T19:10:52.6647113Z ##[debug]loading INPUT_CONFIGMODE
2022-03-31T19:10:52.6648446Z ##[debug]loading INPUT_EXTRAPROPERTIES
2022-03-31T19:10:52.6649720Z ##[debug]loading INPUT_PROJECTKEY
2022-03-31T19:10:52.6651005Z ##[debug]loading INPUT_PROJECTNAME
2022-03-31T19:10:52.6652310Z ##[debug]loading INPUT_PROJECTVERSION
2022-03-31T19:10:52.6653587Z ##[debug]loading INPUT_SCANNERMODE
2022-03-31T19:10:52.6654892Z ##[debug]loading INPUT_SONARQUBE
2022-03-31T19:10:52.6661571Z ##[debug]loaded 16
2022-03-31T19:10:52.6666114Z ##[debug]Agent.ProxyUrl=undefined
2022-03-31T19:10:52.6667138Z ##[debug]Agent.CAInfo=undefined
2022-03-31T19:10:52.6667886Z ##[debug]Agent.ClientCert=undefined
2022-03-31T19:10:52.6668576Z ##[debug]Agent.SkipCertValidation=undefined
2022-03-31T19:10:53.0036939Z ##[debug]SonarQube=7f560a96-3568-45a1-a2e4-f2aa98e673a0
2022-03-31T19:10:53.0038107Z ##[debug]7f560a96-3568-45a1-a2e4-f2aa98e673a0=[https://sonarqube.dev.XXXXX.com/sonar
2022-03-31T19:10:53.0039013Z](https://sonarqube.dev.XXXXX.com/sonar
2022-03-31T19:10:53.0039013Z) ##[debug]7f560a96-3568-45a1-a2e4-f2aa98e673a0 auth param apitoken = undefined
2022-03-31T19:10:53.0040947Z ##[debug]7f560a96-3568-45a1-a2e4-f2aa98e673a0 auth param username = ***
2022-03-31T19:10:53.0041899Z ##[debug]7f560a96-3568-45a1-a2e4-f2aa98e673a0 auth param password = undefined
2022-03-31T19:10:53.0042679Z ##[debug]organization=undefined
2022-03-31T19:10:53.0047967Z ##[debug]scannerMode=MSBuild
2022-03-31T19:10:53.0050422Z ##[debug]projectKey=XXXXX
2022-03-31T19:10:53.0051793Z ##[debug]projectName=XXXX
2022-03-31T19:10:53.0052901Z ##[debug]projectVersion=5.5
2022-03-31T19:10:53.0053599Z ##[debug]organization=undefined
2022-03-31T19:10:53.0055695Z ##[debug][SQ] API GET: '/api/server/version' with query "undefined"
2022-03-31T19:10:53.3444863Z ##[debug]task result: Failed
2022-03-31T19:10:53.3481627Z ##[error]Unhandled: Converting circular structure to JSON
2022-03-31T19:10:53.3490080Z ##[debug]Processed: ##vso[task.issue type=error;]Unhandled: Converting circular structure to JSON
2022-03-31T19:10:53.3498894Z ##[debug]Processed: ##vso[task.complete result=Failed;]Unhandled: Converting circular structure to JSON
2022-03-31T19:10:53.3742391Z ##[section]Finishing: Prepare analysis on SonarQube

2. No additional settings in in the *Advanced* section of the *Prepare* step

When I use self hosted agent , I’m successfully able to run tasks, but when I use azure hosted agents tasks getting failed

Hello !
I don’t want to hijack this topic (Tell me if i should start another one) but i’m having the same error with a sonarqube (9.4) behind a Nginx proxy with HTTPS.

It works well in HTTP so maybe this is SSL related ?

On my side it fails with both Azure agent and self hosted agent.

I am facing same issue, with MS agent and self hosted agent also.
can you please provide the solution for this issue.

With public facing url this issue is resolved