詹金斯分行说明符未得到遵守 [英] Jenkins Branch Specifier Not Being Obeyed

查看:119
本文介绍了詹金斯分行说明符未得到遵守的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个配置为从Gitlab存储库中提取的Jenkins版本.

I have a Jenkins build configured to pull from a Gitlab repo.

我已经在构建配置中指定了分支说明符,以仅从一个特定分支中提取:

I have specified in the build config, branch specifier to only pull from one specific branch:

Branch Specifier (blank for 'any'): origin/development

但是,无论提交被推送到哪个分支,构建都将触发并拉出提交的分支并对其进行构建.

Yet regardless of which branch a commit is pushed to, the build still triggers and pulls the committed branch and builds it.

我误解了分支指定者应该做什么?我只想在某个分支被提交时进行构建.

Am I misunderstanding exactly what the branch specifier is supposed to do? I want to only build when a certain branch is committed to.

我还尝试了以下具有相同结果的分支说明符:

I've also tried the following branch specifiers with the same results:

development
*/development
refs/head/development

推荐答案

我发现了问题所在(

构建触发器选项下,我指定仅匹配某些分支.

Under the Build Triggers option, I specified to only match certain branches.

Filter Branch By Regex: development

这篇关于詹金斯分行说明符未得到遵守的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆