VSTS仅在由提交触发时失败

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

VSTS构建定义配置为启用“持续集成”,当检测到提交时,构建排队但立即失败,即使在Get sources任务之前,我立即意味着立即失败。此外,我没有从失败的构建的详细信息页面获取任何日志信息,只是一个大的白色空白画布,system.debug的事件被设置为true

enter image description here

此外,我在Branch任务的Get sources属性和Branch filter设置页面的CI中尝试了不同的分支设置,从'develop','refs / heads / develop','','refs / heads /'等不等......再次没有成功

运行构建的代理程序和外部git存储库位于防火墙(Intranet)后面。我认为失败与某种方式有关,但不知道如何解决它。

有没有人遇到过同样的问题并找到了解决方案?

编辑:

@jessehouwing指出我调查_diag,在那里我发现了这个错误信息,但仍然四处寻找有关原因的信息:

[2017-12-22 14:56:14Z WARN VisualStudioServices] Authentication failed with status code 401.
Date: Fri, 22 Dec 2017 14:56:13 GMT
P3P: CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"
Server: Microsoft-IIS/10.0
WWW-Authenticate: Bearer authorization_uri=https://login.microsoftonline.com/0278d500-4cee-4ff3-ba11-a727fc9c10bb, Basic realm="https://tfsprodweu2.app.visualstudio.com/", TFS-Federated
X-TFS-ProcessId: *************************************
Strict-Transport-Security: max-age=31536000; includeSubDomains
ActivityId: *************************************
X-TFS-Session: *************************************
X-VSS-E2EID: *************************************
X-FRAME-OPTIONS: SAMEORIGIN
X-TFS-FedAuthRealm: https://tfsprodweu2.app.visualstudio.com/
X-TFS-FedAuthIssuer: https://ridercorp.visualstudio.com/
X-VSS-AuthorizationEndpoint: https://ridercorp.vssps.visualstudio.com/
X-VSS-ResourceTenant: *************************************
X-TFS-SoapException: %3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csoap%3AEnvelope%20xmlns%3Asoap%3D%22http%3A%2F%2Fwww.w3.org%2F2003%2F05%2Fsoap-envelope%22%3E%3Csoap%3ABody%3E%3Csoap%3AFault%3E%3Csoap%3ACode%3E%3Csoap%3AValue%3Esoap%3AReceiver%3C%2Fsoap%3AValue%3E%3Csoap%3ASubcode%3E%3Csoap%3AValue%3EUnauthorizedRequestException%3C%2Fsoap%3AValue%3E%3C%2Fsoap%3ASubcode%3E%3C%2Fsoap%3ACode%3E%3Csoap%3AReason%3E%3Csoap%3AText%20xml%3Alang%3D%22en%22%3ETF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.%3C%2Fsoap%3AText%3E%3C%2Fsoap%3AReason%3E%3C%2Fsoap%3AFault%3E%3C%2Fsoap%3ABody%3E%3C%2Fsoap%3AEnvelope%3E
X-TFS-ServiceError: TF400813%3A%20Resource%20not%20available%20for%20anonymous%20access.%20Client%20authentication%20required.
X-VSS-S2STargetService: 00000002-0000-8888-8000-000000000000/visualstudio.com
X-TFS-FedAuthRedirect: https://app.vssps.visualstudio.com/_signin?realm=ridercorp.visualstudio.com&reply_to=https%3A%2F%2Fridercorp.visualstudio.com%2F_apis%2Fdistributedtask%2Fpools%2F7%2Fmessages%3FsessionId%3D88f0cd4f-94e8-4b7b-a736-45663feb4c19%26lastMessageId%3D1606&redirect=1&context=eyJodCI6MiwiaGlkIjoiNDE3MWQ3YmEtYTc1ZS00YmYyLTlmYmEtZWU5MTA1N2E4YjQxIiwicXMiOnt9LCJyciI6IiIsInZoIjoiIiwiY3YiOiIiLCJjcyI6IiJ90#ctx=eyJTaWduSW5Db29raWVEb21haW5zIjpbImh0dHBzOi8vbG9naW4ubWljcm9zb2Z0b25saW5lLmNvbSIsImh0dHBzOi8vbG9naW4ubWljcm9zb2Z0b25saW5lLmNvbSJdfQ2
X-Powered-By: ASP.NET
X-Content-Type-Options: nosniff

编辑jan / 2/2018

在_admin / _AgentPool的页面中,构建看起来很开心(绿色),但是构建持续时间不到2秒,但在构建定义的构建摘要中它实际上是红色的。

enter image description here enter image description here

enter image description here

enter image description here

git continuous-integration azure-devops azure-pipelines
1个回答
1
投票

VSTS存在一些问题,即错误消息在某些情况下不会显示。我们正在调查这个问题。您可以在此处跟踪问题:CI trigger on Bonobo Git server

当您使用外部存储库并且VSTS无法成功访问该存储库时,通常会发生此问题。根据您提供的屏幕截图,您使用的是基本身份验证的“http”连接,而VSTS需要与基本身份验证的“https”连接。通过Rest API here获取构建,您将看到详细的错误消息。

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