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