GithubHelp home page GithubHelp logo

buildbot-slack-reporter's Introduction

BuildBot-Slack-Reporter

based on the hipchat reporter

How to use

In master.cfg

SlackChannelMap = {
    "runtests" : "test"
}

custom_message_property = {
    "runtests" : ["TAG"]
}


slackReporter = reporters.SlackStatusPush("slack_bot_token"),
                                                        endpoint='https://slack.com',
                                                        builder_room_map=SlackChannelMap,
                                                        builder_custom_message_property=custom_message_property,
                                                        wantProperties=True
                                                        )

c['services'].append(slackReporter)

Settings

  • slack_bot_token : https://get.slack.help/hc/en-us/articles/215770388-Create-and-regenerate-API-tokens

    • using /api/chat.postMessage to send messages
  • builder_room_map : slack channels mapping

    • whenever builder named runtests is processed, all messages will be send to the "test" channel
  • custom_message_property : Add extra properties created during your build in the slack message

    • dict ( buildername - List of properties )
    • eg : TAG will create in one of runtests buildstep and will appear in the message

buildbot-slack-reporter's People

Contributors

mv740 avatar

Watchers

 avatar

Forkers

yeonsh

buildbot-slack-reporter's Issues

Custom Message Property

Pass custom field option through checkConfig

custom_message_property = {
"runtests" : ["TAG"]
}

slackReporter = reporters.SlackStatusPush(str("test"),
endpoint='https://slack.com',
builder_room_map=CabomaSlackChannelMap,
builder_custom_message_property=custom_message_property,
wantProperties=True
)

if TAG property is found in the builds properties, it will be added to the slack message

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.