Running agent.bat instead of Windows Service

Hi,

Are there any issues with using agent.bat instead of the windows service to stop and start the teamcity agent on a windows machine?  We have some flexunit tests that are failing for some reason and when running the teamcity agent with agent.bat the tests seem to work fine, maybe something to do with bringing up a browser and such.  How do I go about uninstall the windows service so folks are tempted to start and stop the agent from there?

Thanks,
Jay

3 comments
Comment actions Permalink

Hi Jason

Windows has issues with access to UI automation APIs from service processes.
Starting build agents within user sessions helps to solve them.
Additionally you need to disable a screen saver (do not lock the desktop), and set up automatic logon and build agent auto-start.

Michael

0
Comment actions Permalink

Hi Mike,

Have you had anyone report of issues when running flash player tests using flexunit within a browser when they have their agent running under the windows service approach?

0
Comment actions Permalink

Another question in regards to this is if it is okay to just let Windows kill the teamcity agent instance rather than configuring windows to shut the service down when the machine is shutdown/rebooted?

Thanks,
Jay

0

Please sign in to leave a comment.