当前位置:网站首页>[Jenkins] pipeline controls the sequential execution of multiple jobs for timed continuous integration
[Jenkins] pipeline controls the sequential execution of multiple jobs for timed continuous integration
2022-06-29 14:19:00 【bulabula2022】
1.jenkins Create a new assembly line project

2. To write pipeline Pipelined scripts
Full script :
pipeline {
agent any
stages {
stage("build console all") {
steps {
script {
def starting = 'pipeline-'
def ending = ""
def job_list = [
" Empty blackduck History of platform upload bdio file ",
" Security scanning flux Dependent package installation ",
"Coverity Security scan multiple job Running at the same time -mvn Compile the way ",
"BlackDuck Security scan multiple job Running at the same time ",
"BlackDuck_BinaryScan Security scan multiple job Running at the same time "]
def branches = [:]
MAX_CONCURRENT = 1// establish fifo
latch = new java.util.concurrent.LinkedBlockingDeque(MAX_CONCURRENT)// Go to fifo in , Fill in the maximum number of elements
for(int i=0; i<MAX_CONCURRENT; i++)
latch.offer("$i")for(int i=0; i<job_list.size(); i++) {
def name = starting + job_list[i] + ending
branches[name] = {
def thing = null
waitUntil {
// Get a resource
thing = latch.pollFirst();
return thing != null;
}try {
// perform job
build(job: name, propagate: false)
}finally {
// Release a resource
latch.offer(thing)
}
}
}timestamps {
parallel branches
}
}
}
}
}
}
3. Time to build , Add trigger
Running effect :
边栏推荐
- 测试用例设计方法之等价类划分方法
- 微信小程序:全新獨家雲開發微群人脈
- Normalization layer of pytorch learning (batchnorm, layernorm, instancenorm, groupnorm) [easy to understand]
- c语言入门教程–-6循环语句
- Wechat applet: repair collection interface version cloud development expression package
- 如何优雅的写 Controller 层代码?
- 【重要通知】中国图象图形学学会2022年度系列奖励推荐工作启动
- 强大、优秀的文件管理软件评测:图片管理、书籍管理、文献管理
- Distributed cache for memcached
- Unity 关于Destroy 和 OnDestroy失效(延迟)的问题
猜你喜欢

微信小程序:(更新)云开发微群人脉

直觉与实现:Batch Normalization

节点数据采集和标签信息的远程洪泛传输

动荡的中介生意,不安的租房人

Introduction to reverse commissioning -pe file section table and block 03/07
Redis fragment cluster setup and use tutorial
![[dark horse morning post] the market value of China public education has evaporated by more than 200billion; New Oriental has more than 20million live fans; HM closes its first store in China; Vanke Y](/img/d7/4671b5a74317a8f87ffd36be2b34e1.jpg)
[dark horse morning post] the market value of China public education has evaporated by more than 200billion; New Oriental has more than 20million live fans; HM closes its first store in China; Vanke Y

VQA不只需要图片,还需要外部知识!华盛顿大学&微软提出提出REVIVE,用GPT-3和Wikidata来辅助回答问题!...

传输层 用户数据报协议(UDP)

Crazy digital collections, the next myth of making wealth?
随机推荐
win11怎么看cpu几核几线程? win11查看cpu是几核几线程的教程
Application of ansvc reactive power compensation device in a shopping mall in Hebei
【重要通知】中国图象图形学学会2022年度系列奖励推荐工作启动
Characteristics of human immaturity
动荡的中介生意,不安的租房人
golang代码规范整理
Recruiting talents and seeking development | Jincang of the National People's Congress won the "best employer school recruitment case Award"
STM32 watchdog study
单端口RAM实现FIFO
MySQL数据库:读写分离
Equivalence class partition method for test case design method
微信小程序:云开发表白墙微信小程序源码下载免服务器和域名支持流量主收益
I talked about exception handling for more than half an hour during the interview yesterday
现场快递柜状态采集与控制系统
靠代理,靠买断,国产端游的蛮荒时代等待下一个《永劫无间》
[important notice] the 2022 series of awards and recommendations of China graphics society were launched
MySQL 1146 error [easy to understand]
传输层 选择性确认 SACK
Interpretation of RESNET source code in mmdet +ghost module
Wechat applet: Halloween avatar box generation tool