I've created a Team City build to build the feature branches:
Default Branch: refs/heads/development Branch Specification: refs/heads/feature/*
I have a vcs trigger so it builds for every git push. But I don't want it to build when someone pushes to the development branch.
I have tried playing with the branch filter in the trigger, but either features and development build on push, or none of them do.
I'm using TC 9.1.1
Branch filter description. Version Control Settings of a build configuration. Limit the set of branches available for the build configuration. This branch filter is applied before any other branch filter and limits branches shown in the custom build dialog, as well as branches visible to triggers and build features.
To run a custom build with specific changes, open the build results page, go to the Changes tab, expand the required change, click the Run build with this change, and proceed with the options in the Run Custom Build dialog. Use HTTP request or REST API request to TeamCity to trigger a build.
Try the following settings:
Default Branch: refs/heads/development
Branch Specification: +:refs/heads/feature/*
VCS trigger branch filter:
+:*
-:<default>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With