TFS Error while triggering the build from CCNET

130 views
Skip to first unread message

santhosh yalamuri

unread,
Jan 31, 2013, 5:14:53 AM1/31/13
to ccnet...@googlegroups.com
Hi,

      We are using CCNET and NANT in our daily build, CCNET config file just calls a NANT Script.

      But the problem is that the NANT scripts that interact with TFS server are failing when NANT      script is called from CCNET config file, withe the following error.

[exec] Unable to determine the workspace. You may be able to correct this by running 'tf workspaces /collection:TeamProjectCollectionUrl'.

Build Error: NAnt.Core.BuildException
External Program Failed: H:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\TF.exe (return code was 100)

But the same NANT scripts when executed from command line, works absolutely fine without any error.

Is there anything that we have to do so that TFS related tasks do not fail when called from CCNET.

--
Regards,

Santhosh S Yalamuri

Rolando Valdivia

unread,
Jan 31, 2013, 7:02:17 AM1/31/13
to ccnet...@googlegroups.com

Ccnet service run under a different user context (i.e. System, localService, etc.) These are some options:

1. Configure ccnet service to run under your user credentials.
2. Create a user for ccnet exclusively with the necessary privileges and configure the service to run under those credentials and do any ccnet related configuration using that user account.
3. Try to run additional commands (i.e. tf workspaces... Under the configured ccnet service credentials)

The best option in my opinion is 2. You can login with that user account somenthing that you can't do with system account (you can but some tricks are required), in case your personal account get locked, ccnet service wont be affected.

Please note that this kind of problems may occur in many situations where commads are per user i.e. certificate installation, environment variables, etc.

Rolando

--
 
---
You received this message because you are subscribed to the Google Groups "ccnet-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ccnet-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

santhosh yalamuri

unread,
Feb 4, 2013, 2:24:25 AM2/4/13
to ccnet...@googlegroups.com
Hi Ronaldo,

                   How do i configure the ccnet service to run under a particular user credential?

                   I have installed CCNET in administrator account, so i believe that it should have all the required permissions to run the build.

Thanks,
Santhosh

                    

Rolando Valdivia

unread,
Feb 4, 2013, 10:34:16 PM2/4/13
to ccnet...@googlegroups.com

By default the service is installed to run under local system account.

To change that:

Go to start -> run service.msc
Look for CruiseControl.Net service
Right click on it -> properties
LogOn tab
You can change the credentials there.

Rolando

santhosh yalamuri

unread,
Feb 4, 2013, 10:57:36 PM2/4/13
to ccnet...@googlegroups.com
Thanks a lot,  that worked.......
Reply all
Reply to author
Forward
0 new messages