当前位置:网站首页>Jenkins pipeline syntax
Jenkins pipeline syntax
2022-06-12 09:02:00 【Commander in chief (commander in chief)】
Official website
https://www.jenkins.io/doc/book/pipeline/
according to Jenkins Official website Pipeline Explanation given , There are two kinds of pipeline syntax ,
- One is declarative pipeline (Declarative Pipeline)
- The other is scripted pipeline (Scripted Pipeline)
What to pay attention to
The declarative syntax is different from the scripted syntax , Please note that
Declarative pipeline
The basic framework of declarative pipeline script is as follows , What needs to be noticed is :
- The outermost pipeline{} Represents the entire pipeline , Include all the concrete implementations
- agent Fields are essential
- stages{} There can only be one structure , But a stages{} A structure can contain multiple stage{}
- Every stage{} Must have a specific name , Every stage{} There can only be one steps{}
pipeline {
agent any //agent Specify the running node of this pipeline task later , It is generally a fixed node ip Address
//agent any Indicates that the pipeline task is specified to run on any node
stages {
stage('Build') {
// Define build phase
steps {
// Perform specific build tasks ...
}
}
stage('Test') {
// Define the unit test phase
steps {
// Perform specific test contents ...
}
}
stage('Deploy') {
// Define deployment phase
steps {
// Perform specific deployment operations ...
}
}
}
}
边栏推荐
- Chapter V -[bx] and loop instructions
- (node:22344) [DEP0123] DeprecationWarning: Setting the TLS ServerName to an IP address is not permit
- 2024. 考试的最大困扰度-滑动窗口
- Problems that cannot be resolved by tar command
- Building a cluster: and replacing with error
- Inheritance of row height
- 2022 low voltage electrician retraining question bank and online simulation examination
- Shell basic syntax -- array
- ERROR 1630 (42000): FUNCTION a.avg does not exist. Check the ‘Function Name Parsing and Resolution‘
- Can you migrate backwards before the first migration in the south- Can you migrate backwards to before the first migration in South?
猜你喜欢

第三章 寄存器 (内存访问)

About weights exercise

IDEA新版UI申请方法+无测试资格使用方法及相关介绍

Use NVM to dynamically adjust the nodejs version to solve the problem that the project cannot be run and packaged because the node version is too high or too low

2022 low voltage electrician retraining question bank and online simulation examination

通俗理解时域采样与频域延拓
![Sword finger offer:[day 8 dynamic planning (simple)] --- > frog jumping on steps](/img/0a/65bc44850e52204af278e50a8f86eb.jpg)
Sword finger offer:[day 8 dynamic planning (simple)] --- > frog jumping on steps

Background attribute compound writing

Minimum transfer times

Description of string
随机推荐
128. Plus longue séquence continue - table de hachage
Does database and table splitting cause reading diffusion problems? How to solve it?
Difference between binary GB and gib
第七章-更灵活定位内存地址
(14) Inputfield logic analysis
抓取屏幕与毛玻璃效果
Loading font component loading effect
Node sample background setup
Source code and scheme for target recognition, detection and 6D attitude estimation (the most advanced method and data set)
node示例后台搭建
MySQL learning records -- III. MySQL query statements
Chapter IV - first procedure
Graphic analysis of viewbox in SVG
【sklearn学习】LightGBM
POI library update excel picture
Priority issues
When converting tensor to ndarray in tensorflow, the run or Eval function is constantly called in the loop, and the code runs more and more slowly!
【字符集九】gbk拷贝到Unicode会乱码?
Implementing architecture caching in MySQL under redis server environment
Composition of box model