Template for a good new topic, formatted with Markdown:
-
ALM used Azure DevOps
-
CI system used Azure DevOps
When trying to run the SonarCloud code analysis (for a T-SQL project) as part of our Azure DevOps build we are getting an ‘illegal state exception’ as shown below; -
Scanner command used when applicable:
2019-11-05T12:47:07.9141327Z INFO: EXECUTION FAILURE
2019-11-05T12:47:07.9143375Z INFO: ------------------------------------------------------------------------
2019-11-05T12:47:07.9143890Z INFO: Total time: 1:54.502s
2019-11-05T12:47:08.1371139Z INFO: Final Memory: 77M/1507M
2019-11-05T12:47:08.1373089Z INFO: ------------------------------------------------------------------------
2019-11-05T12:47:08.1438163Z ##[error]ERROR: Error during SonarQube Scanner execution
2019-11-05T12:47:08.1448714Z
2019-11-05T12:47:08.1449685Z ##[error]java.lang.IllegalStateException: Fail to request https://sonarcloud.io/api/ce/submit?organization=ipsl-sonarcloudkey-devops-lspi&projectKey=######&projectname=######&characteristic=pullRequest###
2019-11-05T12:47:08.1451160Z
2019-11-05T12:47:08.1451820Z ##[error]at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:200)
2019-11-05T12:47:08.1452522Z at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:200)
2019-11-05T12:47:08.1453394Z ##[error]at org.sonarqube.ws.client.HttpConnector.post(HttpConnector.java:155)
We’ve had a few of these issues this morning and they are blocking our pull request, as we fail the pull request on a Code analysis failure. Any ideas what the issue is and how to potentially resolve it?