Build a specific branch on a specific agent?

Without duplicating build steps and setting up mutually exclusive restrictions, is there a way to direct work to a specific agent based on branch?

our release builds on the <main> branch need to be signed using an EV Authenticode Certificate, which of course is on an HSM (High Security Modeul) in the form of a USB dongle that only one machine can access.

Is there a way to do branch/agent filtering?  As mentioned, I'd hate to copy a build step because I just know that they will somehow get out of sync as one will be edited without thought of replicating the changes to the other build step. 

0
1 comment
Hi! Unfortunately, currently, there is no clean way to achieve this. As suggested in this thread, you can work around it by an additional build configuration that would only run builds in : https://teamcity-support.jetbrains.com/hc/en-us/community/posts/10615159338258-Have-a-specific-branch-be-built-only-on-a-specific-agent

We also have a feature request to allow applying agent requirements conditionally: https://youtrack.jetbrains.com/issue/TW-83110/Apply-agent-requirement-conditionally. I added a comment about your use case.
Feel free to upvote the feature request to show that there is a demand for it and help the team prioritize it.
0

Please sign in to leave a comment.