diff --git a/src/main/java/jenkins/plugins/slack/StandardSlackService.java b/src/main/java/jenkins/plugins/slack/StandardSlackService.java index c42e16ad..f94cda39 100755 --- a/src/main/java/jenkins/plugins/slack/StandardSlackService.java +++ b/src/main/java/jenkins/plugins/slack/StandardSlackService.java @@ -58,17 +58,11 @@ public boolean publish(String message, String color) { boolean result = true; for (String roomId : roomIds) { //prepare attachments first - JSONObject field = new JSONObject(); - field.put("short", false); - field.put("value", message); - - JSONArray fields = new JSONArray(); - fields.put(field); - JSONObject attachment = new JSONObject(); + attachment.put("text", message); attachment.put("fallback", message); attachment.put("color", color); - attachment.put("fields", fields); + JSONArray mrkdwn = new JSONArray(); mrkdwn.put("pretext"); mrkdwn.put("text");