生成失败,然后在Azure DevOps中持续时间为00:00

时间:2018-10-29 07:47:06

标签: azure-devops gitlab

我们的构建偶尔会失败,但是持续时间为00:00。这些失败不会发送失败电子邮件,但会向Slack发送一条消息,我们可以在构建列表中看到失败的构建。即使我们没有更改代码,也会发生这些错误。到目前为止,更改代码后仍未发生此错误。

构建日志中存在以下错误:

An exception occurred while polling the repository.
Error: Microsoft.TeamFoundation.Build2.Server.Extensions.ExternalConnectorException:
No references received in the response from https://our.on-premise.gitlab.com/ourrepo.git/info/refs?service=git-upload-pack.
Status: 500, Reason: Internal Server Error
at Microsoft.TeamFoundation.Build2.Server.Extensions.GitConnector.ReadRefs(IVssRequestContext requestContext, HttpResponseMessage response) in d:\v2.0\P1\_work\7\s\Tfs\Service\Build2\Extensions\SourceProviders\Git\GitConnector.cs:line 296
at Microsoft.TeamFoundation.Build2.Server.Extensions.GitConnector.GetBranches(IVssRequestContext requestContext, ExternalConnection connection, Int32 timeoutSeconds, Boolean useAnonymousAccess) in d:\v2.0\P1\_work\7\s\Tfs\Service\Build2\Extensions\SourceProviders\Git\GitConnector.cs:line 108
at Microsoft.TeamFoundation.Build2.Server.Extensions.GitSourceProvider.GetMatchingBranchRefs(IVssRequestContext requestContext, BuildDefinition definition, IList`1 branchFilters) in d:\v2.0\P1\_work\7\s\Tfs\Service\Build2\Extensions\SourceProviders\Git\GitSourceProvider.cs:line 427
at Microsoft.TeamFoundation.Build2.Server.Extensions.GitSourceProvider.GetSourceVersionsToBuild(IVssRequestContext requestContext, BuildDefinition definition, List`1 branchFilters, Boolean batchChanges, String previousVersionEvaluated, Dictionary`2& ciData, String& lastVersionEvaluated) in d:\v2.0\P1\_work\7\s\Tfs\Service\Build2\Extensions\SourceProviders\Git\GitSourceProvider.cs:line 358
at Microsoft.TeamFoundation.Build2.Server.Extensions.BuildPollingJobExtension.Run(IVssRequestContext requestContext, TeamFoundationJobDefinition jobDefinition, DateTime queueTime, String& resultMessage) in d:\v2.0\P1\_work\7\s\Tfs\Service\Build2\Extensions\BuildPollingJobExtension.cs:line 98.

我们有外部Git(本地GitLab)。我们的管理员说服务器日志中没有任何错误。

此错误来自何处?是Azure DevOps和我们的本地GitLab之间的网络问题吗?

对此有任何解决办法吗?

0 个答案:

没有答案