jenkins基于pipeline实现项目构建

1、Pipeline 是什么

Jenkins Pipeline 实际上是基于Groovy实现的CI/CD领域特定语言(DSL),主要分为两类,一类叫做Declarative Pipeline,一类叫做Scripted Pipeline。

1.1 Declarative Pipeline

Declarative Pipeline 体验上更接近于我们熟知的 travis CI的 travis.yml,通过声明自己要做的事情来规范流程。
如下所示:

pipeline {
   
	agent any
	stages {
   
		stage('Build') {
   
			steps {
   }
		}
		stage(
上一篇:jenkins 构建python 程序报错:ModuleNotFoundError: No module named 'htmltestreport'


下一篇:jmeter、jenkins 实现性能测试自动化