当前位置:网站首页>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...'}}
边栏推荐
- Cryptography series: collision defense and collision attack
- 9+!通过深度学习从结直肠癌的组织学中预测淋巴结状态
- 5分+的单基因泛癌纯生信思路!
- Examples of AES and RSA encryption operations implemented by php7.1
- AXI低功耗接口
- 2022年有什么低门槛的理财产品?钱不多
- 巧妙构思-铁死亡调节因子分型预后发6+
- Continuous testing | test process improvement: practice continuous testing within iterations in coding
- 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.
- 《opencv学习笔记》-- 离散傅里叶变换
猜你喜欢

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

GLOG from getting started to getting started

"Meng Hua Lu" is about to have a grand finale. It's better to learn it first than to look ahead!

《opencv学习笔记》-- 感兴趣区域(ROI)、图像混合

Tools and methods - use code formatting tools in source insight

Basic path test of software test on the function of the previous day

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

GTest从入门到入门

ArrayList # sublist these four holes, you get caught accidentally

Group planning - General Review
随机推荐
How does easygbs, a national standard platform, solve the problem that information cannot be carried across domains?
Installation and operation of libuv
How does wechat and QQ chat work? So simple!!!
Practice of dynamic load balancing based on open source tars
Tencent cloud and the ICT Institute launched the preparation of the "cloud native open source white paper" to deeply interpret cloud native
Cryptography series: collision defense and collision attack
ArrayList#subList这四个坑,一不小心就中招
美团基于 Flink 的实时数仓平台建设新进展
广发证券靠谱吗?开证券账户安全吗?
哪个商业保险养老险好?2022年商业养老保险产品排名
The opportunity to teach cloud development a lesson has finally come!
Database migration tool flyway vs liquibase (II)
5W1H talk about open source - what is open source?
炒伦敦金短线稳定赚钱技巧?在哪里炒伦敦金安全靠谱?
LS-DYNA新手入门经验
怎样打新债具体操作 开户是安全的吗
深圳市人民医院程立新课题组提出多组学数据在肝细胞癌的诊断与预后分析的新方法meGPS
Jenkins remote publishing products
Continuous testing | test process improvement: practice continuous testing within iterations in coding
Is GF Securities reliable? Is it safe to open a securities account?