作业矩阵(作业)
构建矩阵定义
如果未提供 映射,此节点以 include
为键作为 默认前缀。
另请参阅
类型
键
如果提供映射,则支持以下键
include
— 要包含在构建矩阵中的作业(类型:作业矩阵包含或作业矩阵包含序列),详情exclude
— 要从构建矩阵中排除的作业属性(类型:作业矩阵排除或作业矩阵排除的序列),详情allow_failures
— 允许失败的作业属性(类型:作业矩阵允许失败、作业矩阵允许失败或别名:allowed_failures
),详情fast_finish
— 允许构建快速失败(类型:布尔值,别名:fast_failure
)
示例
jobs:
include:
- vault:
api_url: string
token:
secure: encrypted string
secrets:
- string
language: ruby
os: linux
dist: trusty
exclude:
- language: ruby
os: linux
dist: trusty
allow_failures:
- language: ruby
os: linux
dist: trusty
jobs:
- vault:
api_url: string
token:
secure: encrypted string
secrets:
- string
language: ruby
os: linux
dist: trusty
jobs:
vault:
api_url: string
token:
secure: encrypted string
secrets:
- string
language: ruby
os: linux
dist: trusty