[英]Sonar Quality Gate behavior in Jenkins pipeline is unstable
我在 Jenkins 中有一些管道,帶有 SonarQube 階段(版本:6.7.1,構建 35068)。 在某些構建中,由於超時而中止:
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'
可能是什么原因? 我怎樣才能保持穩定? 會不會是網絡問題?
waitForQualityGate
對 SonarQube 服務器執行HTTP調用。
確保您的構建節點,主節點和從節點都可以通過 HTTP 訪問您的 SonarQube 實例。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.