当前位置:网站首页>Jenkins--基础--6.1--Pipeline--介绍
Jenkins--基础--6.1--Pipeline--介绍
2022-08-02 08:22:00 【单身贵族男】
Jenkins–基础–6.1–Pipeline–介绍
1、介绍
- 是Jenkins 2.X核心特性,帮助Jenkins实现从CI到CD与DevOps的转变
- 是一套运行于Jenkins上的工作流框架,将原本独立运行于单个或者多个节点的任务连接起来,实现单个任务难以完成的复杂流程编排与可视化。
- 是一个自动化引擎,它支持许多自动模式。
- Pipeline向Jenkins中添加了一组强大的工具,支持用例 简单的CI到全面的CD pipeline。
2、什么是Pipeline
- 是一组插件,让Jenkins可以实现持续交付管道的落地和实施。
- 持续交付管道(CD Pipeline):是将软件从版本控制阶段到交付给用户或客户的完整过程的自动化表现。
- Pipeline提供了一组可扩展的工具,通过Pipeline Domain Specific Language
(DSL) syntax可以达到Pipeline as Code的目的- Pipeline as Code:Jenkinsfile 存储在项目的源代码库
3、pipeline特性
3.1、代码
Pipeline以代码的形式实现,通常被检入源代码控制,使团队能够编辑,审查和迭代其CD流程。
3.2、可持续性
Jenkins重启或者中断后都不会影响Pipeline Job。
3.3、停顿
Pipeline可以选择停止并等待人工输入或批准,然后再继续Pipeline运行。
3.4、多功能
Pipeline支持现实世界的复杂CD要求,包括fork/join子进程,循环和并行执行工作的能力。
3.5、可扩展
Pipeline插件支持其DSL的自定义扩展以及与其他插件集成的多个选项。
4、两种语法
4.1、声明式
- jenkins2.5新加入的语法

4.1.1、特点
- 最外层必须由pipline{ //do something }来进行包裹
- 不需要";"作为分隔符,每个语句必须在一行内
- 不能直接使用groovy语句(例如循环判断等),需要被script {}包裹
4.2、脚本式

4.2.1、特点
- 最外层有node{}包裹
- 可直接使用groovy语句
边栏推荐
- 不用Swagger,那我用啥?
- What attributes and methods are available for page directives in JSP pages?
- next permutation
- Biotin hydrazide HCl|CAS:66640-86-6|Biotin-hydrazide hydrochloride
- 小康股份更名赛力斯,如何走出一条高端产品的“丝绸之路”?
- cas: 139504-50-0 Maytansine DM1|Mertansine|
- MySQL 中 count() 和 count(1) 有什么区别?哪个性能最好?
- ip地址那点事(二)
- 力扣:第 304 场周赛
- MySQL ODBC驱动简介
猜你喜欢
![Detailed explanation of calculation commands in shell (expr, (()), $[], let, bc )](/img/3c/5cc4d16b9b525997761445f32802d5.png)
Detailed explanation of calculation commands in shell (expr, (()), $[], let, bc )

PyCharm usage tutorial (more detailed, picture + text)

openpyxl 单元格合并

Redisson实现分布式锁

Postman download localization of installation and use

OneNote Tutorial, How to Create More Spaces in OneNote?

抓包工具Charles修改Response步骤

Biotin-EDA|CAS:111790-37-5| Ethylenediamine biotin

Biotin-EDA|CAS:111790-37-5| 乙二胺生物素

Figure robot software digital twin station oil and gas pipelines, oil and gas transportation control platform
随机推荐
RestTemlate源码分析及工具类设计
pycharm的基本使用教程(1)
The crawler video crawl tools you get
测试时大量TIME_WAIT
为什么都推荐使用wordpress, 而不是 phpcms 这些国内的CMS呢?
近期在SLAM建图和定位方面的进展
AI目标分割能力,无需绿幕即可实现快速视频抠图
Business Intelligence Platform BI Business Intelligence Analysis Platform How to Choose the Right Business Intelligence Platform BI
redis-desktop-manager下载安装
mysql 中 in 的用法
TiFlash 存储层概览
第3周学习:ResNet+ResNeXt
如何做好项目管理
What attributes and methods are available for page directives in JSP pages?
【特别提醒】订阅此专栏的用户请先阅读本文再决定是否需要购买此专栏
JSP页面中page指令contentPage/pageEncoding具有什么功能呢?
BGP solves routing black hole through MPLS
prometheus monitoring mysql_galera cluster
What is NoSQL?Databases for the cloud-scale future
How to use postman