分支
将分支加入或排除在构建之外
为你的构建包含或排除分支以供运行。
这是一个遗留设置,使用更强大的条件 (if) 来定义供构建运行的分支。
在没有给定 map 的情况下,此节点使用键 only 作为 默认前缀。
类型
密钥
如果给定一个映射,支持下列键
only— 包含的分支(类型:字符串序列或字符串,例如:master)except— 排除的分支(类型:字符串序列或字符串,别名:exclude,例如:develop)
示例
branches:
only:
- master
except:
- develop
branches:
- master
branches: master