jenkins學習筆記html
Jenkins Email Extension Plugin
Examil-ext Plugin
(本郵件是程序自動下發的,請勿回覆!)<br/> 項目名稱:$PROJECT_NAME<br/> 項目描述:${JOB_DESCRIPTION}<br/> 構建編號:$BUILD_NUMBER<br/> 構建狀態:$BUILD_STATUS<br/> 觸發緣由:${CAUSE}<br/> 構建日誌地址:<a href="${BUILD_URL}console">${BUILD_URL}console</a><br/> 構建地址:<a href="$BUILD_URL">$BUILD_URL</a><br/><hr/> 變動集:${JELLY_SCRIPT,template="html"}<br/>
郵件配置的詳細語法能夠在下面的位置查看前端
--restart always
這樣的自動重啓命令,不然即便代碼報錯,任務也會算作構建成功,由於只是執行啓動命令。-d
有個重大問題
echo "正在構建" \ && cd web-server \ && docker build -t pomelo-dev-client . \ if [ "`docker ps -f name=pomelo-dev-client -q`" ]; then echo "stop and rm pomelo-dev-client" docker stop pomelo-dev-client docker rm pomelo-dev-client elif [ "`docker ps -a -f name=pomelo-dev-client -q`" ]; then echo "rm pomelo-dev-client" docker rm pomelo-dev-client else echo "pomelo-dev-client不存在" fi \ && docker run -d --name pomelo-dev-client -p 3001:3001 pomelo-dev-client \ && sleep 4 \ if [ "`docker ps -f name=pomelo-dev-client -q`" ]; then echo "pomelo-dev-client 啓動成功" elif [ "`docker ps -a -f name=pomelo-dev-client -q`" ]; then echo "rm pomelo-dev-client" docker rm pomelo-dev-client docker run --name pomelo-dev-client -p 3001:3001 pomelo-dev-client else echo "pomelo-dev-client不存在" fi \