使用plugin生成groovy脚本,或者参考已有的groovy脚本。
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
作者:iTech
微信公众号: cicdops