【发布时间】:2018-07-03 22:50:05
【问题描述】:
我们有这样的分支机构:
- 起源/发展
- origin/release/1.0.0
- origin/release/1.1.0
比特桶
在 BitBucket 中,我们添加了名为“Bitbucket Server Webhooks to Jenkins”的 Hook,并启用了自动合并。
在高级配置下:
Branch Options 在输入框中设置为All 和refs/remotes/origin/develop refs/remotes/origin/release/*。
詹金斯
对于 Jenkins,在“源代码管理”部分和“要构建的分支”选项下,我们添加了以下内容:
Branch Specific (blank for 'any'): ${Branch}
Branch Specific (blank for 'any'): **release/*
问题
当我们推动开发时,Jenkins 会开始构建。当我们推送到任何发布分支时,什么都不会发生。
也手动尝试过:http://server/job/Jenkins%20Bitbucket%20Test/buildWithParameters?Branch=release/1.0.0,但这会触发发布/1.1.0 的构建,而不是发布 1.0.0。
【问题讨论】:
-
您是否尝试将
branch称为**release/*? -
是的,抱歉,打错了
-
once look at this。确保你没有那样做。试试
**/release/**这个/可能对你有帮助。
标签: jenkins bitbucket jenkins-plugins