Tamas Ionut
Tamas Ionut

Reputation: 4410

TeamCity fails to trigger on wildcard-specified branch

I have the following setup in TeamCity:

Build Configuration Settings -> Version Control Settings -> VCS Root:

This triggers perfectly when getting the commits from Github from remote-run/my-feature branch, but when I try to have it generic (all branches pushed on remote-run) like this:

nothing is being triggered.

Does anyone knows what branch specs is need in order to trigger when pushing to remote-run/ANYTHING_HERE?

Thanks, Ionut

As a matter of fact, it fails connecting to the Github repo if I specify anything like:

-:refs/heads/*/pull or -:refs/heads/*/merge or +:refs/heads/*/pull or +:refs/heads/*/merge in the Branch Specification even though I have valid Pull Requests present in my Github repo.

Upvotes: 5

Views: 1501

Answers (1)

Nevin Raj Victor
Nevin Raj Victor

Reputation: 2984

Use Branch Filter in the Trigger and set the only filter as

+: remote-run/*

Also in Version Control under Branch Specification use

+:( remote-run/*)

I also had similar issue and solved it as given above. I think this would solve your problem too.

Upvotes: 2

Related Questions