hubot-gobot
GoCD integration bot
Last updated 3 years ago by thepirat000 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hubot-gobot 
SYNC missed versions from official npm registry.

hubot-gobot

GoCD integration bot

See src/gobot.coffee for full documentation.

Description

This plugin is based on Folker Bernitt's hubot-gocd and enables hubot to react on GoCD build events as well as query the current build state of your projects. It queries the cctray.xml status file every two minutes and if a build switched, e.g. from green to red, hubot announces it to the defined chat channel.

Installation

In hubot project repo, run:

npm install hubot-gobot --save

Then add hubot-gobot to your external-scripts.json:

[
  "hubot-gobot"
]

You need to specify the following environment variables:

  • HUBOT_GOCI_EVENT_NOTIFIER_ROOM: The room to send notifications. i.e. #gocd
  • HUBOT_GOCI_SERVER: The GoCD server host name.
  • HUBOT_GOCI_TIMEZONE: (optional) The timezone on GoCD server, i.e. +07:00
  • HUBOT_GOCI_PROJECTNAME_REGEXP: (optional) Regular expression to match the pipeline/stage/job names to consider.

If your GoCD server requires authentication to access cctray.xml you can provide them by setting the environment variables:

  • HUBOT_GOCD_USERNAME
  • HUBOT_GOCD_PASSWORD

Sample Interaction

user1>> hubot build status
hubot>> Good news, everyone! All green!

NPM Module

https://www.npmjs.com/package/hubot-gobot

Current Tags

  • 0.0.9                                ...           latest (3 years ago)

10 Versions

  • 0.0.9                                ...           3 years ago
  • 0.0.8                                ...           3 years ago
  • 0.0.7                                ...           3 years ago
  • 0.0.6                                ...           3 years ago
  • 0.0.5                                ...           3 years ago
  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
  • 0.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 2
This Month 2
Last Day 1
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (13)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |