| | |
| | | post { |
| | | unsuccessful { |
| | | script{ |
| | | def msg = "当前构建失败<br>---------------------<br>提交人:${GIT_COMMIT_AUTHOR}<br>提交信息:<br>${GIT_COMMIT_MSG}<br>---------------------<br>构建内网链接:${BUILD_URL}console" |
| | | def number = "964606955" |
| | | sendMessage(false,number,msg); |
| | | |
| | | String msg = """ |
| | | 项目[${project_name}]序号[${BUILD_ID}]构建失败<br> |
| | | #####################<br> |
| | | 提交人:${GIT_COMMIT_AUTHOR}<br> |
| | | 提交信息:<br> |
| | | ${GIT_COMMIT_MSG}<br> |
| | | #####################<br> |
| | | 构建内网链接:${BUILD_URL}console |
| | | """ |
| | | msg = msg.replaceAll("\n","") |
| | | def number = "326060971" |
| | | sendMessage(true,number,msg); |
| | | } |
| | | } |
| | | } |
| | | } |