使用plugin生成groovy脚本,或者参考已有的groovy脚本。git
文章来自:http://www.ciandcd.com
文中的代码来自能够从github下载: https://github.com/ciandcdgithub
1. 使用插件来写groovy脚本docker
经常使用的功能,能够安装对应的插件,而后在pipeline syntax中生成对应的groovy脚本。插件
例以下面生成email脚本。blog
二 参考更多的groovy脚本ip
https://github.com/jenkinsci/pipeline-examples.git
https://github.com/docker/jenkins-pipeline-scripts.git
https://github.com/fabric8io/jenkins-pipeline-library.gitci