Jenkins "selective" 矩阵构建 [matrix-project-plugin]
Jenkins "selective" matrix build [matrix-project-plugin]
Matrix 插件允许我们根据一些用户定义的或内置的轴进行多维构建。然而,当我们触发矩阵构建时,Jenkins 开始构建所有笛卡尔积构建。 问题:我想知道有没有一种方法可以触发单个矩阵条目的构建,或者我走错了路?
一些可视化:
轴 1 变量(分支)-> master branch1 branch2
轴 2 变量(应用程序类型)-> api web
轴 3 变量(部署目标)-> 测试阶段实时
在这个特定案例中,jenkins 提出了一个包含 3x2x3=18 个构建的 3 维作业立方体,当我触发构建时,矩阵项目全部启动。我在这里想要的是,我应该能够 select 每个轴的轴变量(即来自 multiselect 列表),并且基于那些 selection jenkins 应该只构建相应的项目。例如;
轴 1 -> 分支 1
轴 2 -> api
轴 3 -> 测试阶段
因此 jenkins 应该只执行 2 个作业。
您需要 Matrix Combination Plugin,它会提示您输入所需的组合
This plugin allows a user to choose which matrix combinations he wants
to run, as opposed to the default behaviour where jenkins runs all
combinations: Using:
After clicking the build, the user gets a html table with a checkbox
for each matrix combination.
After clicking the submit button, only checked combinations will run.
Matrix 插件允许我们根据一些用户定义的或内置的轴进行多维构建。然而,当我们触发矩阵构建时,Jenkins 开始构建所有笛卡尔积构建。 问题:我想知道有没有一种方法可以触发单个矩阵条目的构建,或者我走错了路?
一些可视化:
轴 1 变量(分支)-> master branch1 branch2
轴 2 变量(应用程序类型)-> api web
轴 3 变量(部署目标)-> 测试阶段实时
在这个特定案例中,jenkins 提出了一个包含 3x2x3=18 个构建的 3 维作业立方体,当我触发构建时,矩阵项目全部启动。我在这里想要的是,我应该能够 select 每个轴的轴变量(即来自 multiselect 列表),并且基于那些 selection jenkins 应该只构建相应的项目。例如;
轴 1 -> 分支 1
轴 2 -> api
轴 3 -> 测试阶段
因此 jenkins 应该只执行 2 个作业。
您需要 Matrix Combination Plugin,它会提示您输入所需的组合
This plugin allows a user to choose which matrix combinations he wants to run, as opposed to the default behaviour where jenkins runs all combinations: Using:
After clicking the build, the user gets a html table with a checkbox for each matrix combination.
After clicking the submit button, only checked combinations will run.