sonarqube: why are background tasks only viewable by admins?

二次信任 提交于 2019-12-25 07:09:27

问题


We are testing an upgrade to Sonarqube5.3 and are having some of the issues identified in other StackOverflow posts, such as the Cobertura interactions. The problem I have is that I am not an administrator for the test server, so I can't look at the background tasks to find out why they are failing. Is there a way that the background task results can be printed in the sonar analysis logs? And is there a way to get the analysis in the build not to generate an exception when the background task fails, so that it just prints an error? Can the permissions for "view background tasks" be changed from just administrators?


回答1:


The presumption is that non-admins don't care about background tasks except whether the most recent one has succeeded/failed.

Unfortunately, you're not going to be able to see server-side processing errors on the client side. The scanner compiles an analysis report and submits that to the server for processing, where it's queued and handled asynchronously.

What might work for you is requesting admin permissions, not on the SonarQube instance, but only on the project you're trying to analyze. That would give you access to the list of that project's background tasks (as well as the ability to administer the project more generally).



来源:https://stackoverflow.com/questions/36157841/sonarqube-why-are-background-tasks-only-viewable-by-admins

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!