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?
-
Hi, can you please go into some more detail here? Is there any build or build definition configuration information you can provide?– Dan DrewsCommented Jul 13, 2018 at 10:17
-
when i start agent cmd.exe for starting agent to start build, first build run successfully then the next trigger build does not run automatically, we have to restart the cmd.exe for it.. but i want to run it automatically thank u– Abid AliCommented Jul 13, 2018 at 12:56
-
Another thread issue is related to trigger build task, what's the result if you just run the empty builds?– starian chen-MSFTCommented Jul 18, 2018 at 11:42
2 Answers
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:
-
Authentication with TFS Server failed. Please check your settings. This is the error coming on next build trigger– Abid AliCommented Jul 13, 2018 at 14:30
-
Do you use PAT? learn.microsoft.com/en-us/vsts/organizations/accounts/… Commented Jul 13, 2018 at 14:38
-
@AbidAli if you use username/password so when you enter the username you need also the domain (domain\username). Commented Jul 15, 2018 at 6:13
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.