Skip to content

Commit

Permalink
Merge PR #162 add custom message for manually
Browse files Browse the repository at this point in the history
triggered builds on build start.
  • Loading branch information
samrocketman committed Mar 2, 2017
2 parents 3d9f6b1 + 0f58848 commit 0a66b58
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/jenkins/plugins/slack/ActiveNotifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,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;
}
Expand Down

0 comments on commit 0a66b58

Please sign in to comment.