Jenkins自動化整合
阿新 • • 發佈:2021-10-09
gitlab連線Jenkins
建立token後 , 現在的網頁上就會出現一個token:
token只出現一次,注意儲存
將這個token在Jenkins上配置,現在開始配置Jenkins
Jenkins配置自動化整合上線:
配置Jenkins:
新增構建後操作:
設定完成後點選立即構建
去倉庫檢視:
打了 √ 這個是標準提交. 為了驗證.我們在修改檔案讓他自動提交
[root@node1 leilei_test]# cd /leilei/leilei777/leilei_test [root@node1 leilei_test]# echo "<h1>chenleilei _ auto 自動提交 </h1> " >>index.html [root@node1 leilei_test]# git add index.html [root@node1 leilei_test]# git commit -m "modify add 自動提交 index.html" [master 31c4c67] modify add 自動提交 index.html 1 file changed, 1 insertion(+) [root@node1 leilei_test]# git push -u origin master Counting objects: 5, done. Delta compression using up to 2 threads. Compressing objects: 100% (3/3), done. Writing objects: 100% (3/3), 403 bytes | 0 bytes/s, done. Total 3 (delta 1), reused 0 (delta 0) To [email protected]:root/leilei_test.git 45a7388..31c4c67 master -> master Branch master set up to track remote branch master from origin. 推送成功後,檢視結果.
已經看到了 我們新增的內容了,因為沒有設定網頁編碼 中文顯示的亂碼
現在可以去 gitlab上檢視commit
支付寶讚賞