Skip to content

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Drone plugin for sending Mattermost notifications.

Usage

Add as a Drone pipeline step like the following:

steps:
- name: notify
  depends_on: [deploy]
  image: kenshaw/drone-mattermost
  settings:
    url: https://mattermost.<DOMAIN>
    token:
      from_secret: mattermost-token
    team: dev
    channel: town-square
      replace: |-
        [{
          "regexp": "\\\\[?((PRD|HR)-[0-9]+)\\\\]?",
          "replace": "[$1](https://mycompany.atlassian.net/browse/$1)"
        }]
    template: |-
      # {{uppercase (regexReplace "^master$" build.branch "staging")}} deployed
      **Successfully** deployed {{repo.owner}}/{{repo.name}} [`{{build.branch}}@{{truncate commit 7}}`]({{build.link}}) -> https://<URL> [[diff]({{commit.link}})]
      Author: `{{commit.author.username}}`
      > {{commit.message.title}}{{#if commit.message.body}}
      >
      {{{regexReplace "(?m)^" commit.message.body "> "}}}{{/if}}
  when:
    event: push
    status: [success]
    branch: [master, production]

Developing

$ ./build.sh
$ ./test.sh

About

Drone Mattermost notification plugin

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages