jenkins2 javahelloworld

文章來自: http://www.ciandcd.com
文中的代碼來自能夠從github下載:  https://github.com/ciandcd
 

本文使用jenkins自動構建基於maven的java helloworld。java

jenkins server須要安裝插件pipeline 和git。git

jenkins agent機器上須要安裝java jdk和maven。github

java hellowrold的git repository地址:https://github.com/ciandcd/JavaHelloWorld。maven

 

1. 建立pipeline類型的job,而後配置pipeline script以下:插件

 

2. 運行後pipeline view以下:server

 

謝謝。blog

相關文章
相關標籤/搜索