jenkins2 groovy腳本參考

使用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

相關文章
相關標籤/搜索