How do Build Step Requirements inside Agent Requirements work?

I have a few projects which are using a build step requirement which is a regex that checks about a specific version of .NET.


I'm looking into removing said build step requirement so my build can be run from all the build agents instead of just the few that's allowed right now due to it. I can't find it how are build step requirements set. I can see that it's taking the environment variable of my build agents but is that done automatically? 

I wasn't really able to find any documentation regarding this. This is TeamCity On-Premises 2022.10.3(build 117072) 

0
1 comment
Avatar
Fedor Rumyantsev

Hello!

These conditions are added automatically by TeamCity basing on the build step settings. For example, if you specify Required SDK version in the settings of .NET build step, this will create a build step requirement that will only allow build to run on agents that have this SDK version installed. 

To remove these conditions, please consider reconfiguring the corresponding build steps; please mind that for some build steps these conditions will be present regardless of the step configuration (for example, Qodana runner cannot run on Windows at the moment). The conditions are meant to ensure that the build step will be able to start on the agent side. 

Please let me know if this helps. 

0

Please sign in to leave a comment.