SonarQube 5.6.1
我需要允许用户在预览模式下本地运行 SonarQube 分析,但我不希望他们能够将任何内容推送到服务器。
我看到有这个可分配的能力:
EXECUTE ANALYSIS Ability to get all settings required to perform an analysis (including the secured settings like passwords) and to push analysis results to the SonarQube server.
我需要用户能够完成前半部分:
...get all settings required to perform an analysis...
但不是这部分:
...push analysis results to the SonarQube server.
最佳答案
使用 SonarQube 5.6.1,用户可以运行预览分析但不将结果推送到服务器,需要满足以下 2 个条件:
- 这些用户没有全局“执行分析”权限
- 这些用户对其项目拥有“浏览”权限
这就是他们所需要的。
请注意,如果您的开发人员使用 IntelliJ、Eclipse 或 Visual Studio,您应该鼓励他们使用 SonarLint (连接到您的 SonarQube 服务器)而不是手动运行“预览”分析。这会更有效率。即使他们没有这样的IDE,他们最好使用SonarLint for CLI .
关于sonarqube - 如何在本地运行预览分析,但不允许上传到服务器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39885390/