Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 10, 2019. It is now read-only.
/pluginsPublic archive

Commitc80edce

Browse files
Merge pull request#32 from codefresh-io/slack-notifier-default-template
add default template
2 parents505969a +fcf1407 commitc80edce

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

‎plugins/slack-notifier/README.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,27 @@ steps:
4848

4949
```
5050

51+
Default template mode - send information about build
52+
53+
```yaml
54+
---
55+
version:'1.0'
56+
57+
steps:
58+
59+
...
60+
61+
SendToSlack:
62+
title:Sending message to slack
63+
image:codefresh/slacknotifier
64+
environment:
65+
-SLACK_HOOK_URL=${{SLACK_HOOK_URL}}
66+
-MODE=default-template
67+
...
68+
69+
```
70+
71+
5172

5273
##Environment Variables
5374

‎plugins/slack-notifier/plugin.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ envs:
2020
-name:SLACK_ATTACHMENTS
2121
description:Attachments to send. Documentation https://api.slack.com/docs/message-attachments
2222
-name:MODE
23-
description:template | simple, by default simple. In case with template mode you can have general body in attachment SLACK_TEMPLATE_BODY and different fields SLACK_TEMPLATE_FIELDS
23+
description:template | simple | default-template, by default - simple. In case with template mode you can have general body in attachment SLACK_TEMPLATE_BODY and different fields SLACK_TEMPLATE_FIELDS
2424
-name:SLACK_TEMPLATE_BODY
2525
type:required
2626
description:Required in template mode, general body, should be not array. Support only one attachment in body. Documentation https://api.slack.com/docs/message-attachments

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp