rundeck-plugins / slack-incoming-webhook-plugin

A Rundeck Plugin for Slack Incoming-WebHook
Apache License 2.0
34 stars 24 forks source link

single configuration for all jobs #7

Closed itnazeer closed 4 years ago

itnazeer commented 5 years ago

So, I have to update every job to which channel it need to send notification, need to webhook url, token id in every job. Can we do this global instead of adding webhook url, token id etc in every job? please suggest on this.

ltamaster commented 5 years ago

Hi @itnazeer,

You can set the attributes at project or framework level

Screenshot 2019-04-24 12 24 00

For example:

project.plugin.Notification.SlackNotification.webhook_base_url=https://hooks.slack.com/services
project.plugin.Notification.SlackNotification.webhook_token= T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
itnazeer commented 5 years ago

I have added in framework properties and restarted the the rundeck service, though I can't see slack notification enabled on jobs.

ltamaster commented 5 years ago

Any error on service.log?

bradym commented 5 years ago

@itnazeer You have to enable notification on individual jobs.

If you leave the fields for WebHook Base URL, WebHook Token and Slack Channel blank it will use the values from framework.properties.

If you provide values for any of those fields, it will take precedence over what is specified in framework.properties. This can come in handy for testing or for jobs that should notify a channel other than the default.

fdevans commented 4 years ago

Closing as workaround/solution provided. Let us know or re-open if you have having the same issue.