如何在并行执行中以不同的参数启动相同的作业? [英] How start identical jobs with different parameters in parallel execution?

查看:109
本文介绍了如何在并行执行中以不同的参数启动相同的作业?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个构建作业和一个测试作业参数.

I have a build job and a test job parameters.

我想从事构建工作,同时并行执行带有一个参数的测试作业和带有不同参数的同一测试作业.

I want to be after the build job, simultaneously run test job with one parameter and the same test job with different parameters in parallel execution.

                build job  
                   |  
                  / \  
         test job    test job
   with one params    with other params
            |             |

如何完成此操作以及是否可以在无需编写自己的插件的情况下执行?

How to accomplish this and whether it is possible to perform without having to write your own plugin?

谢谢!

推荐答案

创建测试作业时,将其创建为构建多配置项目" 在配置作业时,选择配置矩阵",然后选择用户定义的轴"

When you create your test job, create it as a "Build multi-configuration project" While configuring the job select "Configuration Matrix" then "User-defined axis"

您可以在作业中将此轴的名称用作参数.给定的参数将在不同的作业中同时启动. (如果有足够的执行程序可用)

You can use the name of this axis as a parameter in your job. the given parameters will be started simultaneous in different jobs. (if enough executors are available)

这篇关于如何在并行执行中以不同的参数启动相同的作业?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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