当前位置:网站首页>持续交付-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
上的工作流框架,将原本独立运行于单个或者多个节点的任务连接起来,实现单个任务难以完成的复杂流程编排与可视化。
边栏推荐
- [matytype] insert MathType inter line and intra line formulas in CSDN blog
- 442. duplicate data in array
- The project bar on the left side of CodeBlocks disappears, workspace automatically saves the project, default workspace, open the last workspace, workspace (Graphic tutorial, solved)
- Valgrind usage of memory leak locating tool
- [AI information monthly] 350 + resources! All the information and trends that can't be missed in June are here! < Download attached >
- [paper reading] trajectory guided control prediction for end to end autonomous driving: a simple yet strong Ba
- 爬虫(2) - Requests(1) | Requests模块的深度解析
- . Net 5.0+ does not need to rely on third-party native implementation of scheduled tasks
- Matplotlib数据可视化基础
- Mobile hard drive reads but does not display drive letter
猜你喜欢

MIT最新论文《对可解释特征的需求:动机和分类》:在机器学习模型的组成元素中建立可解释性

12款大家都在用的产品管理平台

Sqlachemy common operations

CRC verification

Wireshark TS | 快速重传和乱序之混淆

What are the advantages and disadvantages of PHP

106. construct binary tree from middle order and post order traversal sequence

NC | 肠道细胞和乳酸菌共同作用来防止念珠菌感染

商城小程序源码开源版-可二开

In June 2022, it was the first programming language?!
随机推荐
Simulink simulation circuit model of open loop buck buck buck chopper circuit based on MATLAB
数据库实验报告(二)
What legal risks and qualifications should be paid attention to when building a digital collection platform?
Submission lottery - light application server essay solicitation activity (may) award announcement
YoDA统一数据应用——融合计算在蚂蚁风险场景下的探索与实践
关于Keil编译程序出现“File has been changed outside the editor,reload?”的解决方法
Recommend a JSON visualization tool artifact!
Suggest collecting | what to do when encountering slow SQL on opengauss?
Handling distributed transactions with powerful dbpack (PHP tutorial)
Infinite innovation in cloud "vision" | the 2022 Alibaba cloud live summit was officially launched
想请教一下,我在广州,到哪里开户比较好?现在网上开户安全么?
Database experiment report (I)
Intel Labs annonce de nouveaux progrès en photonique intégrée
谷歌新论文-Minerva:用语言模型解决定量推理问题
Rising Stars in Plant Sciences (RSPS2022) Finalist科学演讲会(6.30晚9点)
Leetcode 181 Employees exceeding the manager's income (June 29, 2022)
CVPR 2022 | Virtual Correspondence: Humans as a Cue for Extreme-View Geometry
英特尔实验室公布集成光子学研究新进展
Development overview of fund internationalization
毕业季·进击的技术er