Travis CI 跳过 SonarQube 分析 [英] Travis CI skipping SonarQube analysis

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

问题描述

我正在尝试在 github 项目中配置 SonarQube 分析.我遵循了官方的 travis ci 文档,但未执行 SonarQube 分析.

I'm trying to configure SonarQube analysis in a github project. I've followed the official travis ci documentation but SonarQube analysis is not performed.

我收到以下消息:跳过 SonarQube 扫描,因为它未在安全环境中运行"

I'm getting the following message: "Skipping SonarQube Scan because it is not running in a secure environment"

拉取请求链接:https://github.com/zakshya/cronos/pull/4

完整构建日志:https://s3.amazonaws.com/archive.travis-ci.org/jobs/216125526/log.txt

有人遇到过这个问题吗?我缺少一些配置吗?

Does some one encountered this problem ? I'm i missing some config ?

推荐答案

中所述SonarQube Travis 附加组件关于分析拉取请求的官方文档:

As mentioned in the official documentation of the SonarQube Travis Add-on about analysing pull requests:

出于安全原因,此高级功能[即拉取请求分析]仅适用于内部拉取请求.换句话说,拉取请求从 fork 构建将不会被检查.

For security reasons, this advanced feature [i.e. pull request analysis] works only for internal pull requests. In other words, pull requests built from forks won’t be inspected.

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

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