当前位置:网站首页>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 .
边栏推荐
- Adobe Premiere基础-声音调整(音量矫正,降噪,电话音,音高换挡器,参数均衡器)(十八)
- Machine learning notes - time series as features
- 深入解析kubernetes controller-runtime
- Cesium 多边形增加文字标签(polygon 加 label)多边形中心点偏移问题解决
- Capacitor
- MapReduce elementary programming practice
- Intranet penetration with FRP
- Raspberry pie realizes intelligent cooling by temperature control fan
- Jenkins - Pipeline 语法
- [sylixos] I2C device driver creation and use
猜你喜欢

Jenkins - Copy Artifact 插件 Build 之间数据共享传递

Evaluation - grey correlation analysis

【嵌入式基础】串口通信

Numpy----np. meshgrid()

Adding text labels to cesium polygons the problem of polygon center point offset is solved

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

声网 VQA:将实时互动中未知的视频画质用户主观体验变可知

Cesium 获取屏幕所在经纬度范围

Appium automation test foundation - Supplement: app package name and appactivity

Numpy----np.meshgrid()
随机推荐
网络爬虫是什么
MySQL十种锁,一篇文章带你全解析
Jenkins - Copy Artifact 插件 Build 之间数据共享传递
Cesium 点击绘制多边形(动态绘制多边形)
利用redis bitmap实现人员在线情况监控
Lmsoc: a socially sensitive pre training method
数据库的新选择 Amazon Aurora
Intranet penetration with FRP
Ten MySQL locks, one article will give you full analysis
Appium自动化测试基础 — ADB常用命令(一)
Appium自动化测试基础— 补充:App的包名(appPackage)和启动名(appActivity)
Adobe Premiere foundation - sound adjustment (volume correction, noise reduction, telephone tone, pitch shifter, parameter equalizer) (XVIII)
Appium automation test foundation - Supplement: app package name and appactivity
外盘期货哪里可以开户?哪个平台出入金比较安全?
如何高效读书学习
Cesium 抗锯齿(线,边框等)
What are the risks of opening a compass stock account? Is it safe to open a compass account
205. isomorphic string
COSCon'22 讲师征集令
Capacitor