使用Jenkins管道进行矩阵配置 [英] Matrix configuration with Jenkins pipelines

查看:97
本文介绍了使用Jenkins管道进行矩阵配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Jenkins Pipeline插件(又名Workflow)可以与其他Multibranch插件一起扩展以构建分支并自动提取请求.

The Jenkins Pipeline plugin (aka Workflow) can be extended with other Multibranch plugins to build branches and pull requests automatically.

运行多个配置的首选方法是什么?例如,使用Java 7和Java 8进行构建.这通常称为矩阵配置(由于多种组合,例如语言版本,框架版本等)或构建变体.

What would be the preferred way to run multiple configurations? For example, building with Java 7 and Java 8. This is often called matrix configuration (because of the multiple combinations such as language version, framework version, ...) or build variants.

我尝试过:

  • 按单独的stage步骤顺序执行它们.很好,但是花费了不必要的时间.
  • parallel步骤中执行它们,在它们内部分配或不分配node.可以,但是我不能在并行内部使用stage步骤来限制其可视化方式的已知限制.
  • executing them serially as separate stage steps. Good, but takes more time than necessary.
  • executing them inside a parallel step, with or without nodes allocated inside them. Works but I cannot use the stage step inside parallel for known limitations on how it would be visualized.

有推荐的方法吗?

推荐答案

至少

It seems like there is relief coming at least with the BlueOcean UI. Here is what I got (the tk-* nodes are the parallel steps):

这篇关于使用Jenkins管道进行矩阵配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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