简体   繁体   English

Jenkins 管道中的声纳质量门行为不稳定

[英]Sonar Quality Gate behavior in Jenkins pipeline is unstable

I have some pipelines in Jenkins, with the SonarQube stage (Version: 6.7.1, build 35068).我在 Jenkins 中有一些管道,带有 SonarQube 阶段(版本:6.7.1,构建 35068)。 In some builds it is aborted due to time out:在某些构建中,由于超时而中止:

12:19:01 Sleeping for 3 min 0 sec
[Pipeline] timeout
12:22:10 Timeout set to expire in 25 min
[Pipeline] waitForQualityGate
12:22:10 Checking status of SonarQube task 'XXXXXXXXX' on server 'Sonar'
12:22:10 SonarQube task 'XXXXXXXXXX' status is 'PENDING'
12:47:10 Cancelling nested steps due to timeout

and in some other builds it pass:在其他一些构建中它通过:

13:56:47 Sleeping for 3 min 0 sec
[Pipeline] timeout
13:59:47 Timeout set to expire in 25 min
[Pipeline] {
[Pipeline] waitForQualityGate
13:59:47 Checking status of SonarQube task 'XXXXXXXXXX' on server 'Sonar'
13:59:47 SonarQube task 'XXXXXXXXXXXX' status is 'SUCCESS'
13:59:47 SonarQube task 'XXXXXXXXXXXX' completed. Quality gate is 'WARN'

what might be the reason for it?可能是什么原因? how can I keep it stable?我怎样才能保持稳定? can it be network issue?会不会是网络问题?

waitForQualityGate performs an HTTP call to the SonarQube server. waitForQualityGate对 SonarQube 服务器执行HTTP调用。

Make sure your build nodes, both master and slaves has HTTP access to your SonarQube instance.确保您的构建节点,主节点和从节点都可以通过 HTTP 访问您的 SonarQube 实例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM