SonarQube - 分析同一项目的分支 [英] SonarQube - analyzing branches of the same project

查看:27
本文介绍了SonarQube - 分析同一项目的分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道 SonarQube UI 上没有新项目"按钮.但是,我想对同一个项目的两个分支进行分析.问题是由于项目名称相同,SonarQube 会将两个分支的分析结果上传到 SonarQube Server 上的同一个项目中.如何配置 SonarQube 以便一个分支将分析结果上传到一个项目,另一个分支将结果上传到 SonarQube 服务器上的另一个项目?

I know that there is no "new project" button on SonarQube UI. However, I have two branches of the same project that I want to do analysis on. The thing is that since the project names are the same, SonarQube will upload the analysis results of the two branches into the same project on SonarQube Server. How do I configure SonarQube so that one branch will upload analysis results to one project and the other branch will upload results to another project on SonarQube server?

推荐答案

你可能想看看 这部分Sonar 文档,特别是在 sonar.branch 参数中.它似乎是为您想要做的事情而设计的,并且正在为我们工作.

You might want to look at this part of the Sonar documentation, specifically at the sonar.branch parameter. It seems to be designed for what you want to do, and is working that way for us.

这篇关于SonarQube - 分析同一项目的分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆