Trigger build on assembla merge request
Answered
Hello everyone, is it possible to trigger build in TeamCity when new merge request in Assembla is created
Please sign in to leave a comment.
Hi,
I thought I had already answered to this question, but I'm not seeing the response now, so if it's duplicated, sorry about it.
I'm not familiar with how Assembla handles merge requests, and the question would be answerable by that. Typically, git providers will generate custom branches, something along the lines of "refs/pull/*/head", that can be used in the branch specification to track this kind of scenarios. You can try to guess whether Assembla does something like that by adding a "+:*" line to the branch specification. That will cover all branches so you can see whether a new merge request arrives because a new branch will be tracked. After that, you can refine it, or modify branch filters in the build configuration or triggers to ensure that only your desired branch is triggered automatically, or tracked at all. More info here: https://www.jetbrains.com/help/teamcity/working-with-feature-branches.html
If Assembla follows a different direction for handling merge requests, then you might need to take other actions, but for that, you might need to request the information from them directly.