I am using TFS build server 2015 and I'm trying to run a build but the build always stuck on waiting for an available agent
for 2-3 minutes and then fails.
I tried to download the log.zip but its empty.
When I run the agent from cmd the next message appears:
The Agent failed to start this job. Error: An error occurred while sending the request
I checked all the logs in the event viewer and there are no errors at all.
I also tried to re-install the agent and nothing seems to help.
Edit: I found the problem. in the Team Foundation Administration Console the property of "Notification URL" was with invalid value of not existed server.