当前位置:网站首页>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语句
边栏推荐
猜你喜欢

Shell becomes canonical and variable

PyCharm使用教程(较详细,图+文)

王学岗-编译出运行的文件

Application and case analysis of CASA model and CENTURY model

Redisson报异常attempt to unlock lock, not locked by current thread by node id解决方案

Redis分布式锁入门

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

Postman download localization of installation and use

MySQL Workbench 安装及使用

第3周学习:ResNet+ResNeXt
随机推荐
High imitation [Huawei consumer business official website] and wonderful animation analysis: practice embedding JS code in low-code platform
tf.where使用
Biotin-EDA|CAS:111790-37-5| Ethylenediamine biotin
openpyxl 单元格合并
OneNote Tutorial, How to Create More Spaces in OneNote?
The crawler video crawl tools you get
抓包工具Charles修改Response步骤
The packet capture tool Charles modifies the Response step
R语言plotly可视化:plotly可视化回归模型实际值和回归预测值的散点图分析回归模型的预测效能、一个好的模型大部分的散点在对角线附近(predicted vs actual)
Shell becomes canonical and variable
Seleniu截图代码以及给图片赋值名字
Three types of [OC learning notes] Block
第3周学习:ResNet+ResNeXt
Postman download localization of installation and use
Redis分布式锁
Qt读取文件中内容(通过判断GBK UTF-8格式进行读取显示)
Codeforces Round #811 (Div. 3)无DF
unity pdg 设置隐藏不需要的节点以及实现自动勾选自动加载项
Spark 系统性学习笔记系列
What attributes and methods are available for page directives in JSP pages?