"There are no compatible agents which can run this build", yet the Project is shown as compatible
I am getting the above error in TeamCity Professional 2020.2.3 (build 86002) when trying to build a project, and I am not sure how to troubleshoot what the actual problem is.
The project I am trying to build is shown in the list of compatible configurations for the Build Agent and is also shown in the pool for that Agent, yet when I try to build, it says it is incompatible. I have attached screen shots. Is there a log somewhere that I can see what the actual issue is ?
Upload ID : 2021_03_29_A9devsHAgG4CYWay
Please sign in to leave a comment.
Edit: I have found that If I go to the "Compatible Agents" tab of the queued build, it shows the Agent as Incompatible there (which is a bit confusing). The reason given is "Implicit requirements: teamcity.build.branch defined in Build feature: Automatic merge"
I will investigate this and post results. I had copied the step from an earlier version, so looks like that parameter is not defined somewhere.
Solved : I hadn't noticed that the teamcity.build.branch parameter had been added automatically in the merge message of the "Automatic merge" Build feature. It was complaining that it was not a parameter that had been set. I don't actually need it, and when removed, the agent then picked up the build.
I do find it somewhat confusing though that the Agent is shown as compatible in several places when it isn't.