linux - SonarQube 不延长超时

标签 linux azure sonarqube azure-devops ubuntu-16.04

我在尝试将 SonarQube 与 TFS Online 结合使用时遇到错误。处理过程中超时。我更改了 sonar.properties 文件并重新启动了服务。但我仍然收到一条错误消息,说它超时了,因为它没有在 300 秒内完成。我什至尝试扩展服务器以赋予其更多功能。我目前处于,D2_V2在 Azure 上。

Sonar .属性

sonar.jdbc.maxWait=900000

错误

2017-03-11T20:12:34.4141248Z Waiting on the SonarQube server to finish
processing in order to determine the quality gate status.
2017-03-11T20:12:34.4141248Z  2017-03-11T20:12:34.4141248Z 
2017-03-11T20:17:34.7999965Z
##[error]System.Management.Automation.RuntimeException: The analysis did not complete in the allotted time of 300 seconds. Consider setting
the build variable SonarQubeAnalysisTimeoutInSeconds to a higher
value. ---    System.Management.Automation.RuntimeException: The
analysis did not complete in the allotted time of 300 seconds.
Consider setting the build variable SonarQubeAnalysisTimeoutInSeconds
to a higher value. 2017-03-11T20:17:34.7999965Z    --- End of inner
exception stack trace --- 2017-03-11T20:17:34.7999965Z    at
System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input) 2017-03-11T20:17:34.7999965Z    at
System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke) 2017-03-11T20:17:34.8009662Z    at
System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync) 2017-03-11T20:17:34.8009662Z    at
System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
2017-03-11T20:17:34.8009662Z    at
System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
2017-03-11T20:17:34.8009662Z    at
Microsoft.TeamFoundation.DistributedTask.Handlers.LegacyVSTSPowerShellHost.VSTSPowerShellHost.Main(String[] args) 2017-03-11T20:17:34.8109668Z
##[error]LegacyVSTSPowerShellHost.exe completed with return code: -1. 2017-03-11T20:17:34.8109668Z ##[section]Finishing: Complete the
SonarQube analysis

最佳答案

正如错误消息所示:

The analysis did not complete in the allotted time of 300 seconds. Consider setting the build variable SonarQubeAnalysisTimeoutInSeconds to a higher value

转到构建定义中的“变量”选项卡,添加上述变量并增加值。

关于linux - SonarQube 不延长超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42740237/

相关文章:

C++预处理器

linux - bashrc 别名的动态目录名

java - Sonar 未在 sonar.api.resources 中找到依赖项

php - Azure PHP Web 角色,F# 辅助角色 : developing on different machines

c++ - SonarQube 分析期间出现错误 - 缺少属性。但我应该设置什么属性?

ios - 如何在 mac 上本地使用 Sonarqube 作为服务?

linux - 如何在 Fedora 中安装 NDK?

python - 使用 setup.py 安装 .desktop 文件

azure - SQL Azure 联合 - 开发环境

azure - 启用/禁用事件订阅