SonarQube publish fails on Azure Devops

We use Azure Devops and we Have SonarQube version 7.0 on premises.
Starting on friday we are experiencing an error on SonarQube publish task

The trace is:

##[debug][SQ] Waiting for task ‘AXxKVpxSYhav363kWGhZ’ to complete.
##[debug][SQ] API GET: ‘/api/ce/task’ with query “{“id”:“AXxKVpxSYhav363kWGhZ”,“additionalFields”:“warnings”}”
##[debug]Response: 200 Body: “{“task”:{“id”:“AXxKVpxSYhav363kWGhZ”,“type”:“REPORT”,“componentId”:“AXxKTxuXYhav363kWGhR”,“componentKey”:“it.credem.develo.be.jee:DEVELO_CHECKS_BE_JEE”,“componentName”:“DEVELO_CHECKS_BE_JEE”,“componentQualifier”:“TRK”,“status”:“IN_PROGRESS”,“submittedAt”:“2021-10-04T10:06:02+0200”,“submitterLogin”:“admin”,“startedAt”:“2021-10-04T10:06:04+0200”,“executionTimeMs”:421,“logs”:false,“organization”:“default-organization”}}”
##[debug][SQ] Task status:IN_PROGRESS
##[debug][SQ] Waiting for task ‘AXxKVpxSYhav363kWGhZ’ to complete.
##[debug][SQ] API GET: ‘/api/ce/task’ with query “{“id”:“AXxKVpxSYhav363kWGhZ”,“additionalFields”:“warnings”}”
##[debug]Response: 400 Body: “{“errors”:[{“msg”:“Value of parameter ‘additionalFields’ (warnings) must be one of: [stacktrace, scannerContext]”}]}”
##[debug][SQ] API GET ‘/api/ce/task’ failed, status code was: 400
##[error][SQ] API GET ‘/api/ce/task’ failed, status code was: 400
##[debug]Processed: ##vso[task.issue type=error;][SQ] API GET ‘/api/ce/task’ failed, status code was: 400
##[debug][SQ] Publish task error: [SQ] Could not fetch task for ID ‘AXxKVpxSYhav363kWGhZ’
##[debug]task result: Failed
##[error][SQ] Could not fetch task for ID ‘AXxKVpxSYhav363kWGhZ’
##[debug]Processed: ##vso[task.issue type=error;][SQ] Could not fetch task for ID ‘AXxKVpxSYhav363kWGhZ’
##[debug]Processed: ##vso[task.complete result=Failed;][SQ] Could not fetch task for ID ‘AXxKVpxSYhav363kWGhZ’

Any suggestion?

Hi @gtonti

I would strongly suggest to upgrade your SonarQube version to at least the current LTS, this message is shown for SQ version < 7.4, which begins to be pretty old and is not supported anymore.

Thanks
Mickaël

Hi @mickaelcaro

I’m using SonarQube version 8.1, I’m getting below error in Azure DevOps Publish Gate Result task.

**##[error][SQ] API GET ‘/api/ce/task’ failed, error was: {“errno”:“ECONNRESET”,“code”:“ECONNRESET”,“syscall”:“read”}
##[error][SQ] Could not fetch task for ID ‘AXxLbRADORhkZtH14d2l’
**

Is it also related to upgrade or something else?

Thanks in Advance.

Hi @Nikhil welcome to the community.

No i don’t think this is related to the upgrade. Please open up a new thread with as much detail as you can. (Looks like your SSL connection was closed somehow)

Thanks.