/allure-notifications

jar, that draws piechart from results and sends it with link to build to messenger

Primary LanguageJava

Allure notifications 🌞

for telegram, slack, skype, email, mattermost

Languages:

Telegram Slack
shakal_screenshot shakal_screenshot
Mattermost Email
shakal_screenshot shakal_screenshot
Skype Icq
Done Wat? lol
How to:
CommandLine options
All keys should be used with `-D`:
key description
projectName Name of project
env Environment (Test, Prod, etc.) name
comment Any comment here
reportLink Jenkins Build URL
config.file Path to JSON-config file
java  \
"-DprojectName=${PROJECT_NAME}" \
"-Denv=${ENVIRONMENT}" \
"-DreportLink=${BUILD_URL}" \
"-Dcomm=Any comment here" \
"-Dconfig.file=${PATH_TO_FILE}" \
-jar allure-notifications-3.1.2.jar
Config file structure
Here you can find config file structure for lib configuration.
{
  "app": {
    "bot": {
      "token": "",
      "chat": "",
      "replyTo": ""
    },
    "base": {
      "lang": "",
      "messenger": "",
      "allureFolder": "",
      "allureLinkPath": "",
      "chart": false,
      "chartName": "",
      "project": ""
    },
    "mail": {
      "host": "",
      "port": "",
      "username": "",
      "password": "",
      "enableSSL": false,
      "from": "",
      "recipient": ""
    },
    "mattermost": {
      "url": ""
    },
    "proxy": {
      "host": "",
      "port": 0,
      "username": "",
      "password": ""
    },
    "skype": {
      "appId": "",
      "appSecret": "",
      "serviceUrl": "",
      "conversationId": "",
      "botId": "",
      "botName": ""
    }
  }
}

You only need to feel needed options in bot, base, mail or proxy section. Please, be careful, lang and messenger fields are required!

Example for Telegram messenger:

{
  "app": {
    "bot": {
      "token": "asdhsdgfjsdfgFgjhg4831)@",
      "chat": "-1",
      "replyTo": ""
    },
    "base": {
      "lang": "en",
      "messenger": "telegram",
      "allureFolder": "build/allure-report/",
      "allureLinkPath": "allure",
      "chart": true,
      "chartName": "",
      "project": ""
    },
    "mail": {
      "host": "",
      "port": "",
      "username": "",
      "password": "",
      "enableSSL": false,
      "from": "",
      "recipient": ""
    },
    "mattermost": {
      "url": ""
    },
    "proxy": {
      "host": "",
      "port": 0,
      "username": "",
      "password": ""
    },
    "skype": {
      "appId": "",
      "appSecret": "",
      "serviceUrl": "",
      "conversationId": "",
      "botId": "",
      "botName": ""
    }
  }
}