当前位置:网站首页>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 .
边栏推荐
- [Yocto RM] 4 - Source Directory Structure
- Adobe Premiere foundation - sound adjustment (volume correction, noise reduction, telephone tone, pitch shifter, parameter equalizer) (XVIII)
- Hi, you have a code review strategy to check!
- 【牛客討論區】第四章:Redis
- Shardingsphere-proxy-5.0.0 establish MySQL read / write separation connection (6)
- COSCon'22 讲师征集令
- Machine learning notes - time series as features
- Review of drug discovery-02-prediction of molecular properties
- Deep parsing of kubernetes controller runtime
- [Niuke discussion area] Chapter 4: redis
猜你喜欢

Cesium 抗锯齿(线,边框等)

Adobe Premiere Basics - common video effects (cropping, black and white, clip speed, mirroring, lens halo) (XV)

Overview of drug discovery-01 overview of drug discovery

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

利用redis bitmap实现人员在线情况监控

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

Drug interaction prediction based on learning size adaptive molecular substructure

机器学习笔记 - 时间序列作为特征

Class initialization and callback usage

Raspberry pie realizes intelligent cooling by temperature control fan
随机推荐
[Niuke discussion area] Chapter 4: redis
解决ionic4 使用hammerjs手势 press 事件,页面无法滚动问题
Geojson format description (detailed format)
Self supervised learning and drug discovery
嵌入式必学!硬件资源接口详解——基于ARM AM335X开发板 (下)
9. Openfeign service interface call
Jenkins - 邮件通知 Email Notification 插件
frp实现内网穿透
数据库的新选择 Amazon Aurora
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
Réseau neuronal pour la solution détaillée Multi - diagrammes de fondation zéro
Appium自动化测试基础 — ADB常用命令(一)
766. 托普利茨矩阵
Numpy----np.meshgrid()
Jenkins - 内置变量访问
深入解析kubernetes controller-runtime
[Yocto RM]1 - System Requirements
Fundamentals of scala (3): operators and process control
[Yocto RM]9 - QA Error and Warning Messages
Data analysts too hot? Monthly income 3W? Tell you the true situation of this industry with data