CCNet 1.8 and TFSPreview.com

Topics: Developer Forum
Aug 21, 2012 at 3:42 PM

Hi Gurus,

I have recently migrated one of my projects to TFSPreview from my hosted TFS 2010 + SVN repository. So far things are looking good.

However, I'm having a hard time configuring CruiseControl.NET (for CI) to work against my new Source Control Repo hosted in TFSPreview.

This is what the conf file look like at them moment:

<sourcecontrol type="vsts">
     <server>https://myinstall.tfspreview.com</server>
     <project>$\MyProj\trunk</project> 
     <workingDirectory>C:\MyCode\MyProj\trunk</workingDirectory>
    <username>myuser@hotmail.com</username>
    <password>MyHotmailPassword</password>
    <domain></domain>
    <executable>PathToTF.exe</executable>
    <autoGetSource>True</autoGetSource>
    <timeout units="minutes">30</timeout>
</sourcecontrol>

The Exception I'm getting is:

ThoughtWorks.CruiseControl.Core.CruiseControlException: TF30064: You are not authorized to access the server.

at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vsts.LookForErrorReturns(ProcessResult pr)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vsts.ProjectExists(IIntegrationResult result)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Vsts.GetModifications(IIntegrationResult from, IIntegrationResult to)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModifications(ISourceControl sourceControl, IIntegrationResult lastBuild, IIntegrationResult thisBuild)
at ThoughtWorks.CruiseControl.Core.IntegrationRunner.GetModifications(IIntegrationResult from, IIntegrationResult to)
at ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate(IntegrationRequest request)

 

Please please help me! :-)

Sep 13, 2012 at 10:03 AM

If it is TFS 2010, then you have to use the URL of collection not the server....

TFS 2008: https://myinstall.tfspreview.com

TFS 2010: https://myinstall.tfspreview.com/<collectionname>