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

问题描述 投票:0回答:1

我在Jenkins的SonarQube阶段有一些管道。在某些版本中,它由于超时而中止:

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

以及其他一些版本通过:

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'

可能是什么原因?如何保持稳定?可能是网络问题吗?

sonarqube jenkins-pipeline jenkins-plugins
1个回答
0
投票
[waitForQualityGate对SonarQube服务器执行HTTP调用。

确保您的构建节点,主节点和从节点均具有对SonarQube实例的HTTP访问权限。

© www.soinside.com 2019 - 2024. All rights reserved.