当前位置:网站首页>jenkins多任务并发构建
jenkins多任务并发构建
2022-07-24 01:30:00 【新雪兰】
一、插件安装
1、首先在jenkins安装Multijob Plugin这个插件

二、 添加要并发执行的单任务
和普通添加job一样,下面这些是我要执行的job,目的是给这三个任务传参以及并发执行这三个任务。

三、并发多任务添加
1、添加multijob project

2、 配置源码管理,因为我协议解析1/2/3用的都是同一分支代码,所以单任务里不再拉取代码,直接在multijob project拉取一遍代码即可。

3、配置构建,添加MultiJob Phase

4、 我们要知道一个关系,就是同一个MultiJob Phase里的job可以选择并发执行或者顺序执行,默认是并发执行,但不同MultiJob Phase是顺序执行的,可以通过建立多个MultiJob Phase来控制不同job的执行顺序。


如果不需要传参的话,到这里并发构建就已经完成了。
四、并发构建传参
1、在多任务这里项目里设置参数,我设置的参数名为:server_ip

2、在job里添加参数
左边的server_ip是协议解析1 job里的参数名,等号后面是上图配置的参数

3、协议解析1里的配置,和普通配置参数一样,这个参数名和上图等号左边的参数名要一致

至此,参数传参完成,可以进行参数化构建了
五、其他问题
1、参数说明

2、 如果运行时,同一个MultiJob Phase配置了并发但是却没有并发执行,需要配置从节点,我是设置了10个线程



边栏推荐
- Hcip first day notes
- SCM learning notes 7 -- systick timer (based on Baiwen STM32F103 series tutorials)
- Location and path planning (lingo, matlab implementation)
- OSPF (sixth day notes)
- OSPF(第五天笔记)
- The first day of little bear pie
- 刚开始使用,请教些问题和教程或分享帖子
- 小熊派第一天
- After the interview with 20 or 30 companies, there is no offer that you can't get after the Android interview
- HCIP第十二天笔记
猜你喜欢

代码阅读方法与最佳实践

Three document usage

Arm architecture and programming 2 -- arm architecture (based on Baiwen arm architecture and programming tutorial video)

SCM learning notes 9 -- Serial Communication (based on Baiwen STM32F103 series tutorials)

Hcip first day notes

HCIP第三天笔记

Disadvantages of win11

Collation of key knowledge of high voltage technology

基于强化空间注意力的视网膜网络(ESA-Unet)

Retinal network based on enhanced spatial attention (ESA UNET)
随机推荐
Hcip day 9 notes
How to synchronize MySQL database when easycvr platform is upgraded to the latest version v2.5.0?
Understanding of flexible array in C language
MGRE experiment
Research on retinal vascular segmentation based on GAN using few samples
HCIP第九天笔记
HCIP第四天笔记
EFCore高级Saas系统下一个DbContext如何支持多数据库迁移
Disadvantages of win11
Repeat one sentence Trojan horse
Hcip day 6 notes
SCM learning notes 5--stm32 clock system (based on Baiwen STM32F103 series tutorials)
OSI、TCP/IP(A1)
"Guanghetong AI intelligent module sca825-w" with full AI performance accelerates the era of e-commerce live broadcast 2.0
How the next dbcontext of efcore advanced SaaS system supports multi database migration
Answer to the short answer question of polymer synthesis technology
HCIP第二天笔记
HCIP第一天笔记
HCIA的复习
面试了二三十家公司所总结的问题,Android面试吃完这一套没有拿不到的Offer......