我使用私有構建代理來訪問內部Subversion源代碼控制。我創建了一個可以工作的構建管道。我想要配置持續集成,因此我使用輪詢間隔180秒來啓用觸發器並配置路徑。這導致下面的生成錯誤輪詢存儲庫時發生異常
An exception occurred while polling the repository. Error: Microsoft.TeamFoundation.Build2.Server.Extensions.ExternalConnectorException: Unable to connect to a repository at URL ' http://myPrivateServer:5000/svn/CCE/trunk/myProjecte ' ---> SharpSvn.SvnSystemException: Unable to connect to a repository at URL ' http://myPrivateServer:5000/svn/CCE/trunk/myProjecte ' ---> SharpSvn.SvnSystemException: No such host is known. --- End of inner exception stack trace --- at SharpSvn.SvnClientArgs.HandleResult(SvnClientContext client, SvnException error, Object targets) at SharpSvn.SvnClient.Info(SvnTarget target, SvnInfoArgs args, EventHandler
1 infoHandler) at SharpSvn.SvnClient.GetInfo(SvnTarget target, SvnInfoEventArgs& info) at Microsoft.TeamFoundation.Build2.Server.Extensions.SvnConnector.GetInfo(Uri repositoryUri, String sourceBranch, ExternalConnection connection, Int32 timeoutSeconds, Int64& lastChangeRevision) in D:\v2.0\A1\_work\1\s\Tfs\Service\Build2\Extensions\SourceProviders\Subversion\SvnConnector.cs:line 45 at Microsoft.TeamFoundation.Build2.Server.Extensions.SvnConnector.GetLogs(IVssRequestContext requestContext, Uri repositoryUri, String sourceBranch, Int64 lastVersionBuilt, ExternalConnection connection, Int32 timeoutSeconds, IEnumerable
1& logItems) in D:\v2.0\A1_work\1\s\Tfs\Service\Build2\Extensions\SourceProviders\Subversion\SvnConnector.cs:line 73 at Microsoft.TeamFoundation.Build2.Server.Extensions.SvnSourceProvider.<>c__DisplayClass23_3.b__3() in D:\v2.0\A1_work\1\s\Tfs\Service\Build2\Extensions\SourceProviders\Subversion\SvnSourceProvider.cs:line 583 at Microsoft.VisualStudio.Services.WebApi.HttpRetryHelper.Invoke(Action action, Int32& remainingRetries) in D:\v2.0\A1_work\1\s\Vssf\Client\WebApi\HttpRetryHelper.cs:line 51 at Microsoft.TeamFoundation.Build2.Server.Extensions.SvnConnector.RetrySvnAction(IVssRequestContext requestContext, Action action, Int32 retryLimit, Int32& retries) in D:\v2.0\A1_work\1\s\Tfs\Service\Build2\Extensions\SourceProviders\Subversion\SvnConnector.cs:line 197 --- End of inner exception stack trace --- at Microsoft.TeamFoundation.Build2.Server.Extensions.SvnConnector.RetrySvnAction(IVssRequestContext requestContext, Action action, Int32 retryLimit, Int32& retries) in D:\v2.0\A1_work\1\s\Tfs\Service\Build2\Extensions\SourceProviders\Subversion\SvnConnector.cs:line 205 at Microsoft.TeamFoundation.Build2.Server.Extensions.SvnSourceProvider.GetSourceVersionsToBuild(IVssRequestContext requestContext, BuildDefinition definition, List1 pathFilters, Boolean batchChanges, String previousVersionEvaluated, Dictionary
2& ciData, String& lastVersionEvaluated) in D:\v2.0\A1_work\1\s\Tfs\Service\Build2\Extensions\SourceProviders\Subversion\SvnSourceProvider.cs:line 595 at Microsoft.TeamFoundation.Build2.Server.Extensions.BuildPollingJobExtension.Run(IVssRequestContext requestContext, TeamFoundationJobDefinition jobDefinition, DateTime queueTime, String& resultMessage) in D:\v2.0\A1_work\1\s\Tfs\Service\Build2\Extensions\BuildPollingJobExtension.cs:line 101.
似乎是民意調查的顛覆不使用私人生成代理並不能爲此進程來解決URL。有沒有辦法來解決這個問題?
基於路徑(D:\ v2.0 \ A1_work),它使用私有構建代理。您可以從該構建代理訪問該服務器嗎?要更改構建代理,請執行以下操作:1.打開構建定義=>處理=>默認代理隊列。 –
如果您手動排隊構建,該怎麼辦? CI構建排隊時,似乎出現錯誤消息。 –
構建在我手動排隊時工作,所以構建服務器可以訪問Subversion服務器 –