Configure TeamCity to build from SVN trunk, branches and/or tags

前端 未结 2 1428
[愿得一人]
[愿得一人] 2020-12-23 20:19

How can I configure TeamCity to build from SVN trunk and also from different branches and/or tags ?

Our idea is to have multiple builds from the same project, this w

相关标签:
2条回答
  • 2020-12-23 21:08

    I had similar problem with SVN in TeamCity and to allow work with multiple branches I used Configuration parameter to pass "branch" since TeamCity doesn't support multibranch for SVN.

    And set trigger to start build from that branch:

    So in project it looks like:

    0 讨论(0)
  • 2020-12-23 21:15

    First, ensure your VCS root is the root of your SVN repository in your administration panel, instead of being pointed to the trunk directory.

    Then, for each build configuration, edit the checkout rules in your VCS Configuration. Add the checkout rule you desire.

    For example, for your 'trunk' build configuraton, you would have a checkout rule of: +:trunk => ..

    If you have a tag or branch you want to build, just create a new build config with a corresponding checkout rule. A tag of 'release-1.1' would have a checkout rule of: +:tags/release-1.1 => .

    Here is the documentation on checkout rules: http://confluence.jetbrains.net/display/TCD65/VCS+Checkout+Rules

    0 讨论(0)
提交回复
热议问题