当前位置:网站首页>Jenkins - Pipeline concept and creation method
Jenkins - Pipeline concept and creation method
2022-06-28 02:13:00 【wumingxiaoyao】
introduction
Jenkins It's the realization of CI/CD Tools for ,CI/CD It can be regarded as a flow process , How to string up flow operations and carry them out in an orderly manner , This involves Jenkins Pipeline, Reference resources Jenkins Pipelien Official website , This article will introduce some information about Jenkins Pipeline The concept and creation of , Specifically Pipeline The grammar of... Will not be involved , We will describe in detail in the next section .
Summary :
- What is? Jenkins Pipeline
- Jenkins Pipeline How it was created
Blue Ocean
UI Interface
SCM
What is? Jenkins Pipeline
Jenkins Pipeline It's a set of plug-ins , It supports the implementation and integration of continuous delivery pipeline jobs to Jenkins.Pipeline Provides a set of extensible tools , Used by Pipeline Domain specific language (DSL) The simple to complex delivery pipeline is modeled as “ Code ”.
Jenkins 1.x Only through the boundary ⼿ Dynamic description deployment Pipeline.
Jenkins 2.x Start ⽀ a Pipeline as code, The deployment flow can be described in code ⽔ Line .
Pipeline Two kinds of grammar are supported :Declarative declarative ( stay Pipeline 2.5 introduce ) and Scripted Scripted Pipeline . Both syntaxes support building continuous delivery Pipeline . Both can be used in web UI or Jenkinsfile In the definition of Pipeline , However, it is generally believed that creating a Jenkinsfile And checking it into the source control repository is a best practice , Easier version control , Teamwork , code reuse .
Groovy Script language ⾔ Be treated as Pipeline Default language for , Use Groovy Language combination DSL The developed script is called Jenkinsfile.Jenkinsfile File to save task configuration and pipeline information . Both declarative and scripted pipelines are DSL Language , Used to describe a part of the software delivery pipeline . Scripted pipelining is a form of restriction Groovy Grammatically written .Jenkins Not supported by default Jenkinsfile, Need to install Pipleline plug-in unit ,Jenkins The recommended plug-ins installed by default during deployment include Pipeline plug-in unit .
The following figure is an example of the continuous delivery pipelined operation mode :
Jenkins Pipeline How it was created
There are three ways to create Pipeline, Namely Blue Ocean,UI Interface and SCM, Of course, the preconditions are Jenkins Environment and installed Pipeline plug-in unit .
Blue Ocean establish Pipeline
Blue Ocean Is a plug-in , It is also a skin plug-in . It's a project , To study the next generation Jenkins Of UI Interface or better user experience . To put it bluntly , You can understand it as a skin changing plug-in .
- install Blue Ocean plug-in unit
First, through Manage Jenkins -> Plugin Manageer Installation
- visit Blue Ocean
After successful installation ,Jenkins Click... On the home page Open Blue Ocean
- establish Pipeline
Locally deployed Jenkins, Want to create a store in Git Of Pipeline, The page is too slow , And gave up . By the way , Generally deployed by the company Jenkins, Ordinary users may not have permission to pass Blue Ocean Plug in creation Pipeline.Be careful , adopt Blue Ocean Created Pipeline It's actually a multibranch Pipeline, Will be for repository On each branch All create a Jenkinsfile.

choice Git
UI Interface to create Pipeline
Created in this way Jenkinsfile Is stored in the Jenkins Oneself (Jenkins home directory)
- New Item

- Input name , And select Pipeline type

- Drop it down to Pipeline Tab, Default choice Pipeline script
Here is a choice Hello Word Of sample
- Save it , Can Build 了

- Console Output

SCM establish Pipeline
utilize UI Interface to create complex Pipeline, Inconvenient to write and maintain scripts . For convenience ,Pipeline Jenkinsfile You can use a text editor or IDE Write submit to SCM (Source Control Manager), Jenkins It can be downloaded from SCM Take out Jenkinsfile And implement Pipeline Script .
Jenkins The configuration is as follows , repeat UI In the interface 1-2 step , The first 3 Step , Drop it down to Pipeline Tab, choice Pipeline script from SCM, To configure Repository, And Jenkinsfile The path of .
边栏推荐
- Deep parsing of kubernetes controller runtime
- Adobe Premiere Basics - common video effects (cropping, black and white, clip speed, mirroring, lens halo) (XV)
- Adobe Premiere Basics - general operations for editing material files (offline files, replacing materials, material labels and grouping, material enabling, convenient adjustment of opacity, project pa
- 【永艺XY椅】试用体验
- OS模块与OS.path 模块的学习
- Neural network of zero basis multi map detailed map
- Numpy----np. Tile() function parsing
- Google Earth engine (GEE) -- an error caused by the imagecollection (error) traversing the image collection
- How to study efficiently
- 【sylixos】NEW_ Example of type 1 character drive
猜你喜欢

Jenkins - Pipeline 概念及创建方式

Cesium obtains the latitude and longitude range of the screen

Adobe Premiere foundation - sound adjustment (volume correction, noise reduction, telephone tone, pitch shifter, parameter equalizer) (XVIII)
![pytorch_ lightning. utilities. exceptions. MisconfigurationException: You requested GPUs: [1] But...](/img/b4/8921c3ca5cd5a547768489d4a79202.png)
pytorch_ lightning. utilities. exceptions. MisconfigurationException: You requested GPUs: [1] But...

Réseau neuronal pour la solution détaillée Multi - diagrammes de fondation zéro

LMSOC:一种对社会敏感的预训练方法

【嵌入式基础】内存(Cache,RAM,ROM,Flash)

Maimai hot post: Why are big factories keen on making wheels?

【永艺XY椅】试用体验

Adobe Premiere Basics - common video effects (corner positioning, mosaic, blur, sharpen, handwriting tools, effect control hierarchy) (16)
随机推荐
Deep parsing of kubernetes controller runtime
自监督学习与药物发现
Adobe Premiere Basics - common video effects (corner positioning, mosaic, blur, sharpen, handwriting tools, effect control hierarchy) (16)
Appium自动化测试基础 — ADB常用命令(一)
Cesium 多边形(polygon)extrudedHeight 和 height 的区别
指南针股票开户是会有什么风险吗?指南针开户安全吗
Evaluation - rank sum ratio comprehensive evaluation
PV操作原语
[Yocto RM]8 - OpenEmbedded Kickstart (.wks) Reference
Adobe Premiere Basics - general operations for editing material files (offline files, replacing materials, material labels and grouping, material enabling, convenient adjustment of opacity, project pa
To understand what is synchronous, asynchronous, serial, parallel, concurrent, process, thread, and coroutine
The interviewer asked: can you simulate the new operator of JS
I/O限制进程与CPU限制进程
Shardingsphere-proxy-5.0.0 establish MySQL read / write separation connection (6)
数据库查询优化:主从读写分离及常见问题
Jenkins - Copy Artifact 插件 Build 之间数据共享传递
geojson 格式說明(格式詳解)
【嵌入式基础】内存(Cache,RAM,ROM,Flash)
ShardingSphere-proxy-5.0.0建立mysql读写分离的连接(六)
COSCon'22 讲师征集令