嗨,我正在使用 Travis CI 为Maven
应用程序自动覆盖 SonarCloud 上的代码。
现在,在sonar:sonar
本地运行命令会在 SoundCloud 上提交报告,我可以在 Branch 中看到如下所示master
现在我还配置.travis.yml
了文件以在每次构建时自动将报告推送到SoundCloud ,如下所示
但是,当 Travis CI 触发构建时,它会失败并出现以下错误
[INFO] Load project branches
[INFO] Load project branches (done) | time=114ms
[INFO] Load project pull requests
[INFO] Load project pull requests (done) | time=116ms
[INFO] Load branch configuration
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27.884 s
[INFO] Finished at: 2019-05-19T16:47:23Z
[INFO] Final Memory: 93M/496M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar (default-cli) on project safenest-java-server:
Project was never analyzed. A regular analysis is required before a branch analysis`
我是SonarCloud的新手,找不到太多文档来获得帮助。有人能解释一下究竟是什么A regular analysis is required
意思吗?以及如何解决这个问题?
提前致谢。