I’m using sonarcloud in VSTS.
Starting from today some of my builds began to fail on Publish results step.
Tasks I use:
Prepare Analysis Configuration version 1.4.1
Run Code Analysis version 1.4.1
Publish Quality Gate Result version 1.3.0
Builds for develop branch pass without issues.
Builds for master branch run green with no warnings till Publish Quality Gate Result task.
It fails without showing the detailed error message:
2018-10-18T13:38:06.1853846Z ==============================================================================
2018-10-18T13:38:06.1854138Z Task : Publish Quality Gate Result
2018-10-18T13:38:06.1854508Z Description : Publish SonarCloud's Quality Gate result on the VSTS/TFS build result, to be used after the actual analysis.
2018-10-18T13:38:06.1854795Z Version : 1.3.0
2018-10-18T13:38:06.1854995Z Author : sonarsource
2018-10-18T13:38:06.1855288Z Help : [More Information](http://redirect.sonarsource.com/doc/install-
configure-scanner-tfs-ts.html)
2018-10-18T13:38:06.1856258Z
==============================================================================
2018-10-18T13:38:07.6364282Z ##[error][SQ] Task failed with status FAILED
2018-10-18T13:38:07.6448161Z ##[section]Finishing: Publish Quality Gate Result```
Here are my settings for c# failing build
'sonar.coverage.exclusions=**/*'
For c# successful build:
'sonar.branch.name=develop
sonar.coverage.exclusions=**/*'
I tried setting 'sonar.branch.name=master' for the failing one, it doesn't help.
The same issue happens with sonarcloud publish task on javascript build.
Please advise.
I’ve just tried one more time right now
got failures for both case specifying and not specifying branch name “master”
with system.debug = true got details:
2018-10-18T14:35:13.9447918Z ##[debug]Response: 200 Body: “{“task”:{“id”:“AWaHmgvLkffOU2jHqOUd”,“type”:“REPORT”,“componentId”:“AWaHTbq4kffOU2jHqOBn”,“componentKey”:“ToolManager.API”,“componentName”:“ToolManager.API”,“componentQualifier”:“TRK”,“status”:“FAILED”,“submittedAt”:“2018-10-18T16:35:11+0200”,“submitterLogin”:“mylogin”,“startedAt”:“2018-10-18T16:35:11+0200”,“executedAt”:“2018-10-18T16:35:12+0200”,“executionTimeMs”:108,“logs”:false,“errorMessage”:“Project or branch in report (ToolManager.API) does not match the project or branch under which it was submitted (ToolManager.API:BRANCH:master)”,“hasScannerContext”:true,“organization”:“myorg”,“branch”:“master”,“branchType”:“LONG”}}”
I’m sure you are not experiencing the same problem. There’s been an unexpected load on SonarCloud this afternoon, which caused delays in report processing. I guess the publish step failed due to a timeout - i.e. the analysis report was processed successfully but not as fast as the publish step would expect.
Can you confirm this was a timeout problem on the publish task?
Since yesterday all our builds fail on Azure DevOps (VSTS) on “Publish Quality Gate Result” step:
2019-01-29T09:41:27.6430857Z ##[section]Starting: Publish Quality Gate Result
2019-01-29T09:41:27.6434119Z ==============================================================================
2019-01-29T09:41:27.6434378Z Task : Publish Quality Gate Result
2019-01-29T09:41:27.6434426Z Description : Publish SonarCloud’s Quality Gate result on the VSTS/TFS build result, to be used after the actual analysis.
2019-01-29T09:41:27.6434487Z Version : 1.3.0
2019-01-29T09:41:27.6434527Z Author : sonarsource
2019-01-29T09:41:27.6434586Z Help : More Information
2019-01-29T09:41:27.6434647Z ==============================================================================
2019-01-29T09:41:28.9147866Z ##[error][SQ] Task failed with status FAILED
2019-01-29T09:41:28.9262816Z ##[section]Finishing: Publish Quality Gate Result
Status of SonarCloud seems fine (on the status page).
Just had a look to our monitoring system, and I did not find any evidence of trouble on our side with report processing at this period of time.
Are you still experiencing this @devpro?