|
@@ -59,7 +59,7 @@ public class DingDingUtils {
|
|
String content = String.format(msgPattern, environment, SysConstants.hostName, reason, buildLog.getSceneNum(),
|
|
String content = String.format(msgPattern, environment, SysConstants.hostName, reason, buildLog.getSceneNum(),
|
|
buildLog.getDataSource(), buildLog.getLogDetailPath(), buildLog.getLogDetailPath());
|
|
buildLog.getDataSource(), buildLog.getLogDetailPath(), buildLog.getLogDetailPath());
|
|
log.info("服务器:{},发送钉钉消息:{}",SysConstants.hostName,content);
|
|
log.info("服务器:{},发送钉钉消息:{}",SysConstants.hostName,content);
|
|
- //sendMsgToDingRobot(content);
|
|
|
|
|
|
+ sendMsgToDingRobot(content);
|
|
}
|
|
}
|
|
|
|
|
|
public static void sendMsgToDingRobot(String content) throws ApiException, UnsupportedEncodingException, NoSuchAlgorithmException, InvalidKeyException {
|
|
public static void sendMsgToDingRobot(String content) throws ApiException, UnsupportedEncodingException, NoSuchAlgorithmException, InvalidKeyException {
|