How to set teamcity.vcsTrigger.runBuildOnSameRevisionInEveryBranch?

Answered

 

I'm creating a release/xyz branch from the already built master branch. The release/xyz is shown in Teamcity under "Non-built branches" and the build needs to be manually triggered. If I make a new commit to release/xyz the build gets automatically triggered, as well as if I create release/xyz from a branch that is not already built.

So, it seems that I have the same problem as described here:

https://teamcity-support.jetbrains.com/hc/en-us/community/posts/360000027850-Build-configuration-fails-to-trigger-with-same-commit-hashes

I've tried setting teamcity.vcsTrigger.runBuildOnSameRevisionInEveryBranch both as a Configuration Parameter and as System Properties on the Parameters section of the build configuration, without any luck.

What am I doing wrong?

2 comments
Comment actions Permalink

Hi Erik,

 

it seems like you are seeing this rather than the one above: https://youtrack.jetbrains.com/issue/TW-43606

 

In this case, the parameter that tries to control this scenario is not just the build checking the same revision, but seeing an empty branch, since the tag is considered as a branch. Could you try if the teamcity.​vcsTrigger.​runBuildInNewEmptyBranch parameter does the job for you? Set it to true and try again.

0
Comment actions Permalink

Yes, that did the trick!
Thank you!

0

Please sign in to leave a comment.