Marek
Marek

Reputation: 1788

How to trigger TC builds on specific commit comments only

I'm using TC 9.0 with Git. I would like to setup VCS Triggers for all pull requests merges only. I've tried with VCS Trigger Rules:

-:**
+:comment=^Merge pull request:**

but with no luck so far (it didn't caught any change no matter of commit message).

Any ideas what I'm doing wrong?

Upvotes: 0

Views: 1036

Answers (2)

Alina Mishina
Alina Mishina

Reputation: 3370

Try to set internal property teamcity.vcsTrigger.analyzeFullHistoryForMergeCommits=false. For more details see the comment in TeamCity issue tracker.

Upvotes: 2

Shishir
Shishir

Reputation: 780

Try

+:refs/pull/*/merge

You can find more information over here

Upvotes: 1

Related Questions