Bootstrap

Jenkins Pipeline - 脚本式

Jenkins 脚本式语法
 

脚本式管道定义以 node 关键字开头。请考虑以下示例:
 

在脚本式管道定义中,整个代码都封装在管道块中。请考虑以下示例:
这里只是简单的示例,具体的语法可以参考官网的说明流水线语法Jenkins 是一个开源自动化服务器icon-default.png?t=O83Ahttps://www.jenkins.io/zh/doc/book/pipeline/syntax/ 
也可以参考这个 github 上这个仓库,有着各种场景的脚本式案例。
https://github.com/jenkinsci/pipeline-examples/tree/master/pipeline-examples

;