Reputation: 57
I have a solution that consists of several projets like this:
MySolution
-Project1
-Project2
-Project3
For each project I have a branch on github, for example Project1Branch, Project2Branch... I have configured triggers on teamcity for builing containers on pullrequest into master. But when it happens all three projects are build, though changes are made only in Projeсt1. I tried to configure branch filter in triggers for build step +:Project1*
but in doesn't work.
How can i solve this issue?
Upvotes: 0
Views: 1695
Reputation: 374
TL;DR
+:*
.Project1Branch
and "target" to master
branches.For Project1
to build at each MR of Project1Branch
into master
:
Only watch the Project1Branch
branch. In your VCS configuration :
refs/heads/Project1Branch
Project1Branch
Add the merge-request/...
branches that match your pattern to the watched branches. Pull Request Filtering :
+:refs/heads/Project1Branch
+:refs/heads/master
Trigger on every change in watched branch. Triggers :
+:*
If you only want to trigger on MR branches, do Triggers :
+:*
-:Project1Branch
The same goes for Project2
and Project3
.
Upvotes: 3