当前位置:网站首页>持续交付-Pipeline入门
持续交付-Pipeline入门
2022-07-01 11:04:00 【华为云】
Pipeline 是 Jenkins2.X 的最核心的特性,帮助 Jenkins 实现从 CI 到 CD 与 DevOps 的转变。
Pipeline 是一组插件,让 Jenkins 可以实现持续交付管道的落地和实施。持续交付管道(CD
Pipeline)是将软件从版本控制阶段到交付给用户或客户的完整过程的自动化表现。软件的每一次更改(提交到源代码管理系统)都要经过一个复杂的过程才能被发布。
Pipeline 提供了一组可扩展的工具,通过 Pipeline Domain Specific Language(DSL)syntax 可以达到
Pipeline as Code( Jenkinsfile 存储在项目的源代码库)的目的。
Pipeline中的基础概念
Stage
阶段,一个 Pipeline 可以划分成若干个 Stage,每个 Stage 代表一组操作,例如:“Build”,“Test”,“Deploy”。Stage
是一个逻辑分组的概念,可以跨多个 Node
Node
节点,一个 Node 就是一个 Jenkins 节点,或者是 Master,或者是 Agent,是执行 Step 的具体运行环境。
Steps
步骤,Steps 是最基本的操作单元,小到创建一个目录,大到构建一个 Docker 镜像。
Pipeline创建与配置
新建一个 Jenkins 任务,在任务类型中选择 Pipeline。将 Pipleline 的任务代码填入 Pipeline Script 对话框。
运行 Pipeline 任务。
通过代码库运行Pipeline任务
除了可以直接在 Jenkins UI 中添加 Pipeline 代码运行任务,也可以将代码保存到代码库中,然后通过指定代码位置的方式来运行 Pipeline
任务。操作步骤如下:
新建一个 Jenkins 任务,在任务类型中选择 Pipeline。
在 Jenkins Pipeline 任务中选择 Pipeline script from SCM,然后添加 git 源码地址, 在 Script Path 中填写需要运行的 Jenkinsfile 文件所在的地址。
通过代码库运行 Pipeline 任务。
保存对Pipeline所做配置,然后运行任务。
Pipeline,简而言之,就是一套运行于 Jenkins
上的工作流框架,将原本独立运行于单个或者多个节点的任务连接起来,实现单个任务难以完成的复杂流程编排与可视化。
边栏推荐
- CVPR 2022 | self enhanced unpaired image defogging based on density and depth decomposition
- Website source code whole site download website template source code download
- How to get the maximum value of column two and regenerate the table when the SQL Server column one is the same
- Ask everyone in the group about the fact that the logminer scheme of flick Oracle CDC has been used to run stably in production
- Packet mode and three streaming modes in SDP protocol
- Database experiment report (I)
- CVPR 2022 | 基于密度与深度分解的自增强非成对图像去雾
- 华泰证券网上开户安全吗?
- [.net6] use ml.net+onnx pre training model to liven the classic "Huaqiang buys melons" in station B
- The list of winners of the digital collection of "century master" was announced
猜你喜欢

Rising Stars in Plant Sciences (RSPS2022) Finalist科学演讲会(6.30晚9点)

Neurips 2022 | cell image segmentation competition officially launched!

The exclusive collection of China lunar exploration project is limited to sale!

【AI资讯月刊】350+资源大盘点!6月不容错过的资料和动态,都都都在这里啦!<附下载>
![[AI information monthly] 350 + resources! All the information and trends that can't be missed in June are here! < Download attached >](/img/62/562e93e66addc8e86c0a19bc514389.png)
[AI information monthly] 350 + resources! All the information and trends that can't be missed in June are here! < Download attached >

网站源码整站下载 网站模板源代码下载

Matplotlib data visualization Foundation

技术分享 | Linkis参数介绍

JS foundation -- data type

The first anniversary of the data security law, which four major changes are coming?
随机推荐
技术分享 | Linkis参数介绍
Cvpr22 | CMT: efficient combination of CNN and transformer (open source)
华为HMS Core携手超图为三维GIS注入新动能
JS foundation -- data type
新品大揭秘!雅迪冠能 3 多元产品矩阵,满足全球用户出行需求
想开个户,在网上开华泰证券的户安全吗?
Combination of Oracle and JSON
Detailed explanation of linear regression in machine learning
Mobile hard drive reads but does not display drive letter
十年磨一剑:蚂蚁集团可观测性平台 AntMonitor 揭秘
Wireshark TS | confusion between fast retransmission and out of sequence
Sqlachemy common operations
When is testing not unit testing- When is a Test not a Unit-test?
mysql如何把 一个数据库中的表数据 复制到 另一个数据库中(两个数据库不在同一个数据库链接下)
“目标检测”+“视觉理解”实现对输入图像的理解及翻译(附源代码)
力扣(LeetCode)181. 超过经理收入的员工(2022.06.29)
How does MySQL copy table data from one database to another (two databases are not linked to the same database)
使用强大的DBPack处理分布式事务(PHP使用教程)
华为设备配置大型网络WLAN基本业务
我国蜂窝物联网用户已达 15.9 亿,年内有望超越移动电话用户