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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM