In your VCS Trigger, you can define a trigger rule with an Ant-like wildcard, in this case +:HelloWorld/** (the exact file path syntax may be incorrect in this example).
How to get Team City to only trigger a build on a Github pull request if it contains changes in a specific folder
-
18-10-2022 - |
Question
I have a TeamCity configuration to monitor Github pull requests, such that it will pick up any pull requests from Github and then triggers a build.
Now, I only want it to trigger a bulid for the pull requests that contains changes in a specific folder.
Let's say my repo root folder is c:\myProject, the specific folder is c:\myProject\HelloWorld. My aim is to get TeamCity to only trigger a build if the pull request contains changes to the files in HelloWorld folder.
Any thoughts on how to configure it? Many thanks.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow