当前位置:网站首页>Jenkins pipeline syntax
Jenkins pipeline syntax
2022-06-24 12:24:00 【Chen Bucheng I】
One . declarative
declarative Pipeline Must be included in a file named pipeline In the statement block of , Typical declarative Pipeline The grammar is as follows
pipeline {agent anyenvironment {}stages {stage("Build"){steps {sh 'echo Building...}}stage("Test"){steps {sh 'echo Testing...'}}}}
A legal Pipeline Follow these principles :
- The top-level statement block can only be pipeline {}
- Each statement can only be written on one line , There is no separator , For example, semicolon “;”
- Building blocks can only be Sections、Directive、steps Or one of the assignment statements
- All property references are treated as method calls without parameters , for example input Equate to input()
Two . Scripted
Scripted Pipeline The requirements for grammar are relatively loose , The top layer can be node, It can also be stage.node Can be nested stage,stage Conversely, you can nest node. Typical scripted Pipeline The grammar is as follows :
node {stage("Build"){sh 'echo Building...'}stage("Test"){sh 'echo Testing...'}}
边栏推荐
- Which commercial insurance endowment insurance is good? Ranking of commercial endowment insurance products in 2022
- Linker --- linker
- 嵌入式必学!硬件资源接口详解——基于ARM AM335X开发板 (下)
- Group planning - General Review
- Tsingsee green rhino video "cloud side end" +ai intelligent security system is integrated into the mainstream development trend
- 我真傻,招了一堆只会“谷歌”的程序员!
- Concentrate on research preparation, Tencent cloud, see you next year!
- C语言循环语句介绍(foe、while、do...while)
- Adjustment method of easynvr video platform equipment channel page display error
- [live review] battle code pioneer phase 7: how third-party application developers contribute to open source
猜你喜欢

Install Kali on the U disk and persist it

【直播回顾】战码先锋第七期:三方应用开发者如何为开源做贡献

《opencv学习笔记》-- 图像的载入和保存

QT -- the qtabwidget supports dragging tabbar items

How stupid of me to hire a bunch of programmers who can only "Google"!

《opencv学习笔记》-- 分离颜色通道、多通道混合

万名校园开发者花式玩AI,亮点看这张图就够啦!

ArrayList#subList这四个坑,一不小心就中招

Linker --- linker

计组-总复习
随机推荐
【老卫搞机】090期:键盘?主机?全功能键盘主机!
12+!不同癌症中TMB与ICI反应之间的免疫相关因素研究
Opencv learning notes - cv:: mat class
最新热点:使用铜死亡相关基因进行肿瘤预后分型!
How to develop mRNA vaccine? 27+ pancreatic cancer antigen and immune subtype analysis to tell you the answer!
Deep learning ~11+ a new perspective on disease-related miRNA research
Ten thousand campus developers play AI in a fancy way. It's enough to see this picture!
Install MySQL in docker and modify my CNF profile
Variable parameter template implements max (accepts multiple parameters, two implementation methods)
The solution of distributed system: directory, message queue, transaction system and others
嵌入式必学!硬件资源接口详解——基于ARM AM335X开发板 (上)
2021-06-02: given the head node of a search binary tree, it will be transformed into an ordered two-way linked list with head and tail connected.
Difference between X12 830 and 862 messages
11+! 结肠癌中基于 m6A 调节因子的甲基化修饰模式以不同的肿瘤微环境免疫谱为特征
打新债的条件 开户是安全的吗
Coinbase will launch the first encrypted derivative product for retail traders
mRNA疫苗的研制怎么做?27+ 胰腺癌抗原和免疫亚型的解析来告诉你答案!
How to check the situation that the national standard platform easygbs equipment video cannot be accessed by grabbing packets?
《opencv学习笔记》-- 离散傅里叶变换
GTest从入门到入门