Network Drive Access for TeamCity

I am trying to access a network drive in a simple builder.  I read that you can't do this as it is a limitation of a windows service, which is how I am running it.  When I shut down the service and ran it from the runall.bat the server started up in what appeared to be a fresh state.  All of my information/settings had been forgotten.  Shutting that down and restarting the service everything is back to normal.  How can I use the runall.bat file to start up with the same settings as the service?  

As a side note does anyone know how to copy an output file to a sharepoint library more directly than through a network drive?

2 comments
Comment actions Permalink

Hi Perry,

  most likely TeamCity cannot find your TeamCity data directory when it is run from command line. You should specify this directory explicitly, via environment varilable.

  On the other hand, you can run TeamCity server as a window service, as usual, but run build agent from command line. To do this, stop build agent windows service (but leave server running), go to TeamCity/buildAgent/bin directory, and run agent.

  Hope this helps,
  KIR

0
Comment actions Permalink

Hi Perry,

To access a drive which requires network authentication, you can restart the Team City agent service under a specified domain account.

services.msc >> TeamCity Build Agent Service >> Logon >> change radio button to "This account" and specify credentials >> General >> Stop and Start the service.

Cheers,
Lee

0

Please sign in to leave a comment.