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