Skip to content

Commit 0bbc459

Browse files
author
Dave Peticolas
committed
Document process-all-rules option.
1 parent 735a74e commit 0bbc459

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ gocd.slack {
2626
slackDisplayName = "gocd-slack-bot"
2727
slackUserIconURL = "http://example.com/slack-bot.png"
2828
displayMaterialChanges = true
29+
process-all-rules = true
2930
proxy {
3031
hostname = "localhost"
3132
port = "5555"
@@ -40,6 +41,7 @@ gocd.slack {
4041
- `webhookUrl` - Slack Webhook URL
4142
- `channel` - Override the default channel where we should send the notifications in slack. You can also give a value starting with `@` to send it to any specific user.
4243
- `displayMaterialChanges` - Display material changes in the notification (git revisions for example). Defaults to true, set to false if you want to hide.
44+
- `process-all-rules` - If true, all matching rules are applied instead of just the first.
4345
- `proxy` - Specify proxy related settings for the plugin.
4446
- `proxy.hostname` - Proxy Host
4547
- `proxy.port` - Proxy Port
@@ -67,7 +69,7 @@ gocd.slack {
6769
}]
6870
}
6971
```
70-
`gocd.slack.pipelines` contains all the rules for the go-server. It is a list of rules (see below for what the parameters mean) for various pipelines. The plugin will pick the first matching pipeline rule from the pipelines collection above, so your most specific rule should be first, with the most generic rule at the bottom.
72+
`gocd.slack.pipelines` contains all the rules for the go-server. It is a list of rules (see below for what the parameters mean) for various pipelines. The plugin will pick the first matching pipeline rule from the pipelines collection above, so your most specific rule should be first, with the most generic rule at the bottom. Alternatively, set the `process-all-rules` option to `true` and all matching rules will be applied.
7173
- `name` - Regex to match the pipeline name
7274
- `stage` - Regex to match the stage name
7375
- `state` - State of the pipeline at which we should send a notification. You can provide multiple values separated by pipe (`|`) symbol. Valid values are passed, failed, cancelled, building, fixed, broken or all.

docs/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ gocd.slack {
2626
slackDisplayName = "gocd-slack-bot"
2727
slackUserIconURL = "http://example.com/slack-bot.png"
2828
displayMaterialChanges = true
29+
process-all-rules = true
2930
proxy {
3031
hostname = "localhost"
3132
port = "5555"
@@ -40,6 +41,7 @@ gocd.slack {
4041
- `webhookUrl` - Slack Webhook URL
4142
- `channel` - Override the default channel where we should send the notifications in slack. You can also give a value starting with `@` to send it to any specific user.
4243
- `displayMaterialChanges` - Display material changes in the notification (git revisions for example). Defaults to true, set to false if you want to hide.
44+
- `process-all-rules` - If true, all matching rules are applied instead of just the first.
4345
- `proxy` - Specify proxy related settings for the plugin.
4446
- `proxy.hostname` - Proxy Host
4547
- `proxy.port` - Proxy Port
@@ -67,7 +69,7 @@ gocd.slack {
6769
}]
6870
}
6971
```
70-
`gocd.slack.pipelines` contains all the rules for the go-server. It is a list of rules (see below for what the parameters mean) for various pipelines. The plugin will pick the first matching pipeline rule from the pipelines collection above, so your most specific rule should be first, with the most generic rule at the bottom.
72+
`gocd.slack.pipelines` contains all the rules for the go-server. It is a list of rules (see below for what the parameters mean) for various pipelines. The plugin will pick the first matching pipeline rule from the pipelines collection above, so your most specific rule should be first, with the most generic rule at the bottom. Alternatively, set the `process-all-rules` option to `true` and all matching rules will be applied.
7173
- `name` - Regex to match the pipeline name
7274
- `stage` - Regex to match the stage name
7375
- `state` - State of the pipeline at which we should send a notification. You can provide multiple values separated by pipe (`|`) symbol. Valid values are passed, failed, cancelled, building, fixed, broken or all.

0 commit comments

Comments
 (0)