使用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
转载于:https://www.cnblogs.com/itech/p/5660717.html
最后
以上就是勤奋果汁最近收集整理的关于jenkins2 groovy脚本参考的全部内容,更多相关jenkins2内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复