devo-ps / pipelines

Build pipelines for automation, deployment, testing...
MIT License
119 stars 13 forks source link

allow override webhook url in task parameter for slack #120

Closed sp3c73r2038 closed 2 years ago

sp3c73r2038 commented 2 years ago

currently only one slack_webhook url is allowed in a pipeline. overriding it in task does not work. thus cannot send message to multiple slack webhooks.

vars:
  # required for slack_executor plugin to work
  slack_webhook: 'https://some-url-a'

actions:
- type: slack
  message: ""
  # this won't work, will still using top level one
  slack_webhook: 'https://some-url-b'

this PR enables overriding slack_webhook at task level, allowing sending message to different slack webhooks in one pipeline. if slack_webhook parameter is absent at task level, the plugin will still try to use the top level one.