slack.svg

Slack

by drone-plugins


The Slack plugin posts build status messages to your channel.

Example

kind: pipeline
name: default

steps:
- name: slack
  image: plugins/slack
  settings:
    webhook: https://hooks.slack.com/services/...
    channel: dev
    icon_url: https://unsplash.it/256/256/?random

Properties

  • webhook

    stringrequired

    incoming webhook url for posting to a channel

    Default: false

  • channel

    stringoptional

    messages sent to the above webhook are posted here

    Default: false

  • recipient

    stringoptional

    alternatively you can send it to a specific user

    Default: false

  • username

    stringoptional

    choose the username this integration will post as

    Default: false

  • template

    stringoptional

    overwrite the default message template

    Default: false

  • image_url

    stringoptional

    a valid URL to an image file that will be displayed inside a message attachment

    Default: false

  • icon_url

    stringoptional

    a valid URL that displays a image to the left of the username

    Default: false

  • icon_emoji

    stringoptional

    displays a emoji to the left of the username

    Default: false

  • link_names

    stringoptional

    links usernames and channels in the message

    Default: false