From e5a9da3530a4e9eda22fa07b8f2de74488685f4d Mon Sep 17 00:00:00 2001 From: Stephen Ball Date: Thu, 12 Nov 2015 13:28:10 +0000 Subject: [PATCH] Updated Slack Notify Plugin (markdown) --- Slack-Notify-Plugin.md | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/Slack-Notify-Plugin.md b/Slack-Notify-Plugin.md index 72c15a0..5231385 100644 --- a/Slack-Notify-Plugin.md +++ b/Slack-Notify-Plugin.md @@ -23,15 +23,28 @@ failure: show_status: false ``` -Send a message every time the build is run: - +Send a message if the build is successful: ```yaml -completed: + +success: slack_notify: webhook_url: "https://hooks.slack.com/services/R212T827A/G983UY31U/aIp0yuW9u0iTqwAMOEwTg" room: "#phpci" username: "PHPCI" icon: ":ghost:" - message: "%PROJECT_TITLE% - build %BUILD% completed :smiley:" + message: "%PROJECT_TITLE% - build %BUILD% succeeded! :smiley:" + show_status: false +``` + +Send a message every time the build runs: + +```yaml +success: + slack_notify: + webhook_url: "https://hooks.slack.com/services/R212T827A/G983UY31U/aIp0yuW9u0iTqwAMOEwTg" + room: "#phpci" + username: "PHPCI" + icon: ":ghost:" + message: "%PROJECT_TITLE% - build %BUILD% completed" show_status: true ``` \ No newline at end of file