当前位置:网站首页>持续交付(四)Jenkins多线程任务执行
持续交付(四)Jenkins多线程任务执行
2022-08-04 12:27:00 【M1kasal】
前言
本章主要讲述:Jenkins多线程任务执行
正常一个项目部署中,为了节省时间,我们通常都可以将一些没有依赖关系的任务同步执行
- 比如说:在进行UI自动化中,下载app包的同时,我们可以把git源码同步更新给拉下来
那本章就简单讲一个例子,多线程的情况下我们如何去写jenkinsfile
一、任务示例
- 代码我已上传到github:https://github.com/Burden1/Mikasa_pipeline_demo





二、mikasa_parallel_demo
- 并行任务即在外面加个parallel{},里面包含stage{}即可
pipeline {
agent none
stages {
stage('run parallel Stage') {
parallel {
stage('mikasa_Stage_1') {
agent {
label "slave" }
steps {
echo "at agent slave run task 1."
bat "ipconfig"
sleep 10
}
}
stage('mikasa_Stage_2') {
agent {
label "master" }
steps {
echo "at agent master run task 2."
bat "ipconfig"
sleep 10
}
}
}
}
}
}
边栏推荐
- Yolov5 测试和训练自己的数据集
- 【全网首发】Redis系列5:深入分析Cluster 集群模式
- ECCV 2022 | 通往数据高效的Transformer目标检测器
- 监督和半监督学习下的多标签分类综述
- 244 page PDF!"2022 China cloud computing ecological blue book published
- What is DevOps?Enough to read this one!
- num_workers
- 聚焦数据来源、数据质量和模型性能构建小微企业信用画像
- 电源输出的Overshoot和Undershoot 测试
- Programmer Qixi Gift - How to quickly build an exclusive chat room for your girlfriend in 30 minutes
猜你喜欢

【微信小程序】信息管理与信息系统专业社会实习制作项目--垃圾指纹

A Survey of Multi-Label Classification under Supervised and Semi-Supervised Learning

“蔚来杯“2022牛客暑期多校训练营2 G、J、K

程序猿七夕礼物-如何30分钟给女友快速搭建专属语聊房

Motion Rule (16)-Union Check Basic Questions-Grid Game

数据中台建设(九):数据中台资产运营机制

COMSOL空气反应 模型框架

Focus!2022 interview must brush 461 interview questions summary + interview + resume template

244 page PDF!"2022 China cloud computing ecological blue book published

Based on the BiLSTM regression forecast method
随机推荐
从数学角度和编码角度解释 熵、交叉熵、KL散度
UMA&港理工&阿里提出SP-ViT,为视觉Transformer学习2D空间先验知识!
划重点!2022面试必刷461道大厂架构面试真题汇总+面经+简历模板
MATLAB——图像分块
程序猿七夕礼物-如何30分钟给女友快速搭建专属语聊房
What is DevOps?Enough to read this one!
考研数一数二数三之间的具体详细区别
酷开科技 × StarRocks:统一 OLAP 分析引擎,全面打造数字化的 OTT 模式
什么是 DevOps?看这一篇就够了!
Focusing on data sources, data quality and model performance to build a credit profile of small and micro enterprises
Access Huawei game anti-addiction, click the anti-addiction pop-up window, the game crashes
【软考 系统架构设计师】软件架构设计② 软件架构风格
exness:美联储重现鹰派口吻,黄金承压面临转跌信号
1314元的七夕礼盒,收割了多少直男?
集群监控——Zabbix
分布式链路追踪Jaeger + 微服务Pig在Rainbond上的实践分享
【PHP实现微信公众平台开发—基础篇】第2章 微信公众账号及申请流程详解
电源输出的Overshoot和Undershoot 测试
Practical sharing of distributed link tracking Jaeger + microservice Pig on Rainbond
Flutter使用 json_serializable 解析 JSON 最佳方案