简体   繁体   English

竹计划分支和Bitbucket钩

[英]Bamboo Plan Branches and Bitbucket Hooks

I have a repository set up with three branches (Dev, QA, Master). 我的存储库设置了三个分支(Dev,QA,Master)。 I have bamboo set up with the Master branch being the main branch, and then two plan branches for Dev and QA. 我已经建立了一个分支,其中Master分支是主要分支,然后是Dev和QA的两个计划分支。 I have set the build plan to trigger when new commits are pushed. 我已将构建计划设置为在推送新提交时触发。 The problem is that when I push code to Dev, it won't trigger the build plan. 问题在于,当我将代码推送到Dev时,它不会触发构建计划。

I've tried adding hooks into bitbucket but that didn't work either (one hook for each branch), as it triggered all 3 branches to build. 我曾尝试将钩子添加到bitbucket中,但这也不起作用(每个分支一个钩子),因为它触发了所有3个分支的构建。 Does anybody know how to set up remote triggers to trigger each branch individually when code is pushed? 有人知道如何设置远程触发器以在按下代码时分别触发每个分支吗?

I forget the issues i was having with remote triggers, but if it helps, i abandoned that approach and have been very successful in enabling build plan branches and setting Repository Triggers polling every 60 seconds. 我忘记了远程触发器遇到的问题,但是如果有帮助,我就放弃了这种方法,并且在启用构建计划分支和设置存储库触发器每60秒轮询一次方面非常成功。 The polling works well and will detect any changes to any branch and fire off the appropriate build. 轮询工作良好,将检测到任何分支的任何更改并启动适当的构建。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM