当前位置:网站首页>持续交付(二)PipeLine基本使用
持续交付(二)PipeLine基本使用
2022-08-04 12:27:00 【M1kasal】
前言
本章主要讲述:pipeline的基本使用
- 在持续交付中:我们通常用Pipeline命令来实现
那本章我主要讲述两种pipeline方法
1、任务中直接编写pipeline命令
2、从github中读取pipeline代码,再运行任务
一、Jenkins Pipeline 简要介绍
Jenkins Pipeline : 是借用Unix中Pipeline思路,一种高内聚低耦合的工具,Jenkins 2.0 以上才会有,实际运行中,我们都是用解释性代码Jenkinsfile来描述
- 关于Jenkinsfile的语法我们下一篇blog再写,这篇blog我主要讲下pipeline运行的两种方法
Jenkinsfile使用方法有两种:
- 1、Jenkins任务配置页面直接输入
- 2、代码发布到git后,从git上面拉下来
Jenkinsfile语法:
- 1、Declarative pipeline
- 2、Scripts pipeline
二、Jenkins任务配置添加Pipeline script


pipeline {
agent any
stages {
stage('begin') {
steps {
echo 'Hello mikasa'
}
}
}
post {
always{
echo 'good bye mikasa'
}
}
}



三、拉取pipeline代码,执行任务
- 简单来说:就是将pipeline的代码放入到git源码库进行管理,配置的时候选择Pipeline script from SCM,然后添加git源码地址即可
- 我的github源码地址:https://github.com/Burden1/Mikasa_pipeline_demo





边栏推荐
- MOSFET米勒平台(Miller Plateau)
- ShanDong Multi-University Training #4 A、B、C、G
- 微信小程序使用腾讯云对象储存上传图片
- 【全网首发】Redis系列5:深入分析Cluster 集群模式
- 论文翻译:2022_Time-Frequency Attention for Monaural Speech Enhancement
- Hit the interview!The latest interview booklet of Ali Jin, nine silver and ten is stable!
- 独立站卖家如何使用 WhatsApp Business API 建立有意义的客户关系?
- 分布式链路追踪Jaeger + 微服务Pig在Rainbond上的实践分享
- 推荐一款优秀的通用管理后台
- 技术分享| 小程序实现音视频通话
猜你喜欢

Focus!2022 interview must brush 461 interview questions summary + interview + resume template

免费翻译软件哪个好用

DC-DC电源中前馈电容的选择

企业应当实施的5个云安全管理策略

Why is Luo Zhenyu's A-share dream so difficult to fulfill?

独立站卖家如何使用 WhatsApp Business API 建立有意义的客户关系?

UMA & Hong Kong Polytechnic & Ali propose SP-ViT to learn 2D space prior knowledge for visual Transformer!

【黑马早报】尚乘数科上市13天,市值超阿里;北大终止陈春花聘用合同;新东方花近200亿退学费和遣散费;张小泉75%产品贴牌代工...

《独行月球》猛药,治不了开心麻花内耗

动规(16)-并查集基础题——格子游戏
随机推荐
11. Network planning and design
Valentine's Day Romantic 3D Photo Wall [with source code]
使用Stream多年,collect还有这些“骚操作”?
考研数一数二数三之间的具体详细区别
企业应当实施的5个云安全管理策略
Focusing on data sources, data quality and model performance to build a credit profile of small and micro enterprises
String is a reference type
中电资讯 - 一路“标”升,喜迎Q3开门红
面试官:连 INSERT INTO SET 都不知道怎么用,你这3年都干些什么了?
【自动微分实现】反向OO实现自动微分(Pytroch核心机制)
划重点!2022面试必刷461道大厂架构面试真题汇总+面经+简历模板
Js获取当前页面url参数
DC/DC电感底部要不要覆铜?
Cache character stream
《独行月球》猛药,治不了开心麻花内耗
Linux-Docker-Mysql安装
小程序在政务服务平台建设中如何发挥价值
MOSFET米勒平台(Miller Plateau)
Shell loop statement (for, while, until)
DC-DC电源中前馈电容的选择