How do run a build agent outside of a windows service?

Is it possible?

0
6 comments
Avatar
Permanently deleted user

Hi

Yes you can go to the TeamCity Agent Dir then into bin , you should find a file called agent.bat run this command from the command line like this "agent.bat start" this will start a process rather than a service

Pod

0
Avatar
Permanently deleted user

Thank you Pardeep.

Im a little uncertain how this would work tho.  If i kick off the bat file from TeamCity, wouldnt it already be using the Windows Service Agent?  ie: how do i say for project x use build agent .bat-man when the project is triggered.

:-)

0
Avatar
Permanently deleted user

Hi

I'm not sure what you are trying to do ?

You can stop the service if you want to , but why would you make teamcity build configuration run the .bat file it will not be able to because it need a agent running on the machine in order to do anything at all.

Pardeep

0
Avatar
Permanently deleted user

Ohh, i think i was not being clear.   I THINK i understand now.

ie:  
1.)  Stop the Windows Service
2.)  Run the bat file on System Startup to ensure there is an agent running

??

Then my tests will use the agent running outside of the Windows Service?  Is that correct?

Thanks again Pardeep

0

Correct.
If you're going to perform automated UI testing then make sure that screen saver is disabled - locked desktop may break the tests.

0
Avatar
Permanently deleted user

Awesome thanks a lot :-)

0

Please sign in to leave a comment.