Change branch name when running custom build in Teamcity

前端 未结 1 670
刺人心
刺人心 2021-01-24 08:40

Given I have Teamcity job with Git VCS root with default branch which can be changed with branch-name parameter:

When I e.g. set branch-name<

1条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-24 09:01

    the Teamcity has an opportunity for monitoring the branches and runs built to custom branch.

    Firstly, edit your VCS Root and add follows:

    Default branch: refs/heads/master
    Branch specification:+:refs/heads/*

    now the TC will check changes by some interval.

    We are sets the master as default branch. and when we run the build with default parameters, the build will start to master branch

    If you are want to start build with custom branch then press Run... -> Changes -> select your custom branch from Build Branch parameter.

    If you want to run build from API, or want to reverse the build branch parameter, just set Configuration parameters with key teamcity.build.branch and value what you want

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