Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 1.11 KB

README.md

File metadata and controls

45 lines (36 loc) · 1.11 KB

Gitter notify plugin

Gitter plugin which gives the opportunity send any messages to activity feed.

Using example

version: '1.0'
fail_fast: false
...
steps:
  ...
  sendMessage:
    image: codefreshplugins/gitternotifier
    environment:
      - GITTER_WEBHOOK=https://webhooks.gitter.im/e/123abc

Required variables

  • GITTER_WEBHOOK - webhook uri from your gitter room integration

Optional variables

if you not provide this variables, plugin send info about build

  • GITTER_STATUS
    • ok - for info messages
    • error - for error messages (red icon, red text)
  • GITTER_MESSAGE - text of custom message which will be send, with Handlebars.js
    • available vars:

      • {{buildTrigger}}
      • {{buildInitiator}}
      • {{buildId}}
      • {{buildTimestamp}}
      • {{buildUrl}}
      • {{repoOwner}}
      • {{repoName}}
      • {{branch}}
      • {{revision}}
      • {{commitAuthor}}
      • {{commitUrl}}
      • {{commitMessage}}
    • for text markup use Markdown