Set Build Name 就是最後要生成的每條的樣子git
Set jenkins user build variables 就能獲取到BUILD_USER
,就是當前用戶web
BUILD_NUMBER 就是數字,每次+1shell
commit和online_host 是自定義的變量從這裏來api
構建觸發器bash
Execute shell Commandapp
curl -S -m 5 -H "X-TOKEN: 123456789099876588" "http://notify.我司域名.com/api/dingtalk/message/send?receiver=$RECEIVER&content=$CONTENT"
複製代碼
這個通知網址是我司本身搭建的。 curl