jenkins2 groovy脚本参考

使用plugin生成groovy脚本,或者参考已有的groovy脚本。

 

文章来自:http://www.ciandcd.com
文中的代码来自可以从github下载: https://github.com/ciandcd

 

1. 使用插件来写groovy脚本

常用的功能,可以安装对应的插件,然后在pipeline syntax中生成对应的groovy脚本。

例如下面生成email脚本。

 

二 参考更多的groovy脚本

https://github.com/jenkinsci/pipeline-examples.git
https://github.com/docker/jenkins-pipeline-scripts.git
https://github.com/fabric8io/jenkins-pipeline-library.git

 

posted @ 2016-07-11 16:34  iTech  阅读(4570)  评论(0编辑  收藏  举报