Teamcity build triggering from Github pull request creation event
Hi there!
I have a goal to configure Teamcity 2018.2 for automated Github pull request testing before they are merged into develop branch and have read many articles related this topic, but still see one issue I can't resolve:
Pull request creation event itself does not trigger build in Teamcity, but only if some commits are done into this pull request branch later, triggering occurs.
(I have no problem in building pull requests itself, trigger filtering, return status to Github, etc).
Is it possible to trigger build on PR creation in TC version I use ?
Thanks in advance,
Aleksey.
Please sign in to leave a comment.
Hi Aleksey,
If there are no commits on the PR, that should be the same revision from the branch where it was created, and if that branch is being tracked by TeamCity it should be already built. There is no current way to directly handle PR creation events, although if you really want to create builds for it, you could try to create a plugin that hooks into those events and triggers a build.