Build pull requests to specific branch using TeamCity and Github

前端 未结 3 824
余生分开走
余生分开走 2020-12-16 13:00

I want TeamCity to build all pull requests to specific target branch, e.g. develop.
So, I want to build following pull requests:

develop...f         


        
3条回答
  •  暖寄归人
    2020-12-16 13:26

    Build Feature: Pull Request

    Pull request support is implemented as a build feature in TeamCity. The feature extends the VCS root’s original branch specification to include pull requests that match the specified filtering criteria.

    To configure the pull requests support for a build configuration, go to Build Configuration Settings | Build Features, click Add build feature, and select the Pull Requests feature from the dropdown list in the dialog.

    Source: https://blog.jetbrains.com/teamcity/2019/08/building-github-pull-requests-with-teamcity/

    So the filtering is done with the Build Feature: Pull Request, where By target branch: should be set to the targetet branch for example refs/head/master or refs/head/myspecialbranch

提交回复
热议问题