From 160dcd7c1016466200bc0fd7370f9ad0f612f910 Mon Sep 17 00:00:00 2001 From: Miles Roberts Date: Mon, 30 Nov 2015 15:18:37 -0800 Subject: [PATCH] add custom message for manually triggered builds on build start (fixes bug introduced in #137) --- src/main/java/jenkins/plugins/slack/ActiveNotifier.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/jenkins/plugins/slack/ActiveNotifier.java b/src/main/java/jenkins/plugins/slack/ActiveNotifier.java index 03ab2ecd..d08b6520 100755 --- a/src/main/java/jenkins/plugins/slack/ActiveNotifier.java +++ b/src/main/java/jenkins/plugins/slack/ActiveNotifier.java @@ -60,7 +60,11 @@ public void started(AbstractBuild build) { if (scmCause == null) { MessageBuilder message = new MessageBuilder(notifier, build); message.append(causeAction.getShortDescription()); - notifyStart(build, message.appendOpenLink().toString()); + message.appendOpenLink(); + if (notifier.includeCustomMessage()) { + message.appendCustomMessage(); + } + notifyStart(build, message.toString()); // Cause was found, exit early to prevent double-message return; }