Abid Ali
Abid Ali

Reputation: 23

My TFS agent is not working automatically

My TFS agent is working fine on the first build but after completion of this build, the agent needs Ctrl+C to be typed in run.cmd, I want is automatic not manual interaction, how?

Upvotes: 2

Views: 1849

Answers (2)

PatrickLu-MSFT
PatrickLu-MSFT

Reputation: 51073

Please make sure you build agent configured as service mode not interactive mode.

If you configured the agent to run as a service, it starts automatically. You can view and control the agent running status from the services snap-in. Run services.msc and look for "VSTS Agent (name of your agent)".

As your described, sounds like the root cause is your build agent not configured properly. For the second failed build, suggest you remote to your build agent server and try to run the build use command line to narrow down if the issue related to TFS or environment.

Also suggest you to reconfigure your build agent or deployed a totally new build agent, then test again.

Upvotes: 1

Shamrai Aleksander
Shamrai Aleksander

Reputation: 15988

Which kind of problem do you have? Next build can not be started (or any another)? You may configure your build agent to start as service also: enter image description here

Upvotes: 1

Related Questions