第1集,環境搭建
第2集,LNMP項目準備
第3集,WebHook觸發mvn打包
第4集,SonarQube實現CodeReview
第5集,build image
第6集,部署到測試環境,Selenium自動測試
第7集,模擬版本更新,在測試環境驗證
第8集,部署到生產環境
實驗效果:git push提交後自動觸發,最終部署到測試環境
一、Jenkins配置
具體參考:Jenkins通過Tragger parameterized build on other projects插件實現一個項目之後觸發我指定的其它項目
1.webhook配置
2.SonarQube配置
3.build_image配置
二、修改index.html
的內容,上傳gitlab
echo "pipeline" > index.html
git add index.html
git commit -m 'pipeline'
git push
三、Jenkins上驗證