title: An exception occurred while polling the repository
body: <p>I use a private build agent to access an on premise Subversion source control. I created a build pipeline which works. I want to configure continuous integration, so I enable the trigger with a polling interval 180s and configure the path. This resulted in the following build error</p>
  
  <blockquote>
    <p>An exception occurred while polling the repository. Error:
    Microsoft.TeamFoundation.Build2.Server.Extensions.ExternalConnectorException:
    Unable to connect to a repository at URL
    '<a href="http://myPrivateServer:5000/svn/CCE/trunk/myProjecte" rel="nofollow noreferrer">http://myPrivateServer:5000/svn/CCE/trunk/myProjecte</a>' --->
    SharpSvn.SvnSystemException: Unable to connect to a repository at URL
    '<a href="http://myPrivateServer:5000/svn/CCE/trunk/myProjecte" rel="nofollow noreferrer">http://myPrivateServer:5000/svn/CCE/trunk/myProjecte</a>' --->
    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<code>1 infoHandler) at SharpSvn.SvnClient.GetInfo(SvnTarget
    target, SvnInfoEventArgs&amp; info) at
    Microsoft.TeamFoundation.Build2.Server.Extensions.SvnConnector.GetInfo(Uri
    repositoryUri, String sourceBranch, ExternalConnection connection,
    Int32 timeoutSeconds, Int64&amp; 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</code>1&amp; 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.&lt;>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&amp; 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&amp; 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&amp; 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, List<code>1 pathFilters,
    Boolean batchChanges, String previousVersionEvaluated, Dictionary</code>2&amp;
    ciData, String&amp; 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&amp; resultMessage) in
    D:\v2.0\A1_work\1\s\Tfs\Service\Build2\Extensions\BuildPollingJobExtension.cs:line
    101.</p>
  </blockquote>
  
  <p>It seems that the process that polls the subversion does not use the private build agent and is therefor unable to resolve the URL. Is there a way to fix this? </p>