Matching Multiple Build Agents
I'm currently trying to define Agent Requirements for a build configuration and I'm running into trouble finding a rule that captures all of them.
Specifically, I'm trying to match one specific agent called "ci-xcode-teamname" and all agents that begin with "clone-xcode10-###" where ### is an arbitrary number. Unfortunately both contains and starts with do not seem to support logical operators such as | the way that matches does. I've thought about adding TC environment variables to all of the build configurations but most of these machines are managed by other teams and I can't confidently make the guarantee that all machines would have the ENV flag.
Is there something obvious that I'm missing to match all of the described agents?
Please sign in to leave a comment.
Hi Myles,
there are several possibilities to accomplish this. First, the "match" condition will run a matches call, so you can use it for what you are looking for. There are some other possibilities in the feature request to introduce this conditions here: https://youtrack.jetbrains.com/issue/TW-2067 , you might want to check those out.