我的服务器上安装了GitLab CE(至少v8.5).我想将它与sonarqube集成,以便合并请求在评论部分显示任何问题.有没有人成功整合这两个系统?
目前,我发现只有sonarqube插件如下,但我无法成功将其与GitLab集成.
https://gitlab.talanlabs.com/gabriel-allaigre/sonar-gitlab-plugin
我使用了一个docker容器for sonarqube(v5.5)并将插件复制到extensions目录中.在sonarqube的插件设置页面中配置了gitlab用户令牌和gitlab uri.
我正在使用GitLab CI进行持续集成,我为sonarqube做了以下构建工作(使用gradle)
sh gradlew sonarqube -Psonar.analysis.mode=preview -Psonar.issuesReport.console.enable=true \
-Psonar.gitlab.commit_sha=$CI_BUILD_REF -Psonar.gitlab.ref_name=$CI_BUILD_REF_NAME \
-Psonar.gitlab.project_id=$CI_PROJECT_ID
Run Code Online (Sandbox Code Playgroud)
但是,我不确定在此之后该怎么做.几个问题:
当合并请求不存在时会发生什么?在我的git工作流程中,用户将在完成分支工作后提交合并请求.那么,这个插件将如何知道要更新哪个合并请求?
现在我将sonarqube valiation任务设置为仅在master分支上运行.我认为这也需要改为用户分支,对吧?
我确实尝试过提交合并请求,但我没有看到任何评论被添加.我想我缺少一些配置或过程.真的很感激,如果你能帮我指出正确的方向.
我对 Material UI 和 React 很陌生。我有一个非常奇怪的 UI 问题,我希望这里有人能指出我做错了什么。
我在做什么: 我有一个列表。对于每个列表项,我想要一些按钮指向不同的 URL。这是我的列表的代码。这有点伪代码。每个“列表项”都是使用映射生成的,该映射遍历以 JSON 格式保存的数据:
<List>
<ListItem button component="a" href={infoUrl}>
<ListItemAvatar>
<Avatar src={itemIcon} />
</ListItemAvatar>
<ListItemText
primary={this.props.project.name_with_namespace}
secondary={this.props.project.description}
/>
<ListItemSecondaryAction>
<Tooltip id="button-report" title="Report">
<IconButton area-label="Report" href={reportUrl}>
<AssessmentIcon />
</IconButton>
</Tooltip>
<Tooltip id="button-codeRepo" title="Code Repository">
<IconButton area-label="Code Repository" href={repoUrl}>
<CodeIcon />
</IconButton>
</Tooltip>
</ListItemSecondaryAction>
</ListItem>
</List>
Run Code Online (Sandbox Code Playgroud)
问题:列表显示所有列表项。主要和次要文本以及每个列表项的头像也正确显示,包括 2 个“图标按钮”。
问题是,被添加到工具提示IconButton
下ListItemSecondaryAction
。对于第一个列表项,一切都很好。对于所有其他列表项,我必须将鼠标指针移动到图标按钮的底部边缘,以便能够单击并查看工具提示。
如果我完全删除工具提示,则点击不会有任何问题。我可以将鼠标指针移动到图标按钮圆环内的中间或其他区域,然后单击。
我在Tooltip
这里没有正确使用吗?尝试了 Chrome 和 FireFox 并看到相同的问题。
css ×1
gitlab ×1
gitlab-8 ×1
integration ×1
javascript ×1
listitem ×1
material-ui ×1
plugins ×1
sonarqube ×1
tooltip ×1