Versioner sammenlignet

Nøgle

  • Linjen blev tilføjet.
  • Denne linje blev fjernet.
  • Formatering blev ændret.

...

Kodeblok
cd /pack/hubot/bin/hubot

The Config

Kodeblok
 #!/bin/sh
npm install

export PATH="node_modules/.bin:node_modules/hubot/node_modules/.bin:$PATH"


# HIPCHAT
export HUBOT_HIPCHAT_TOKEN="**********************"
export HUBOT_HIPCHAT_JID="*****_***@chat.hipchat.com"
export HUBOT_HIPCHAT_NAME="Hal 9000"
export HUBOT_HIPCHAT_PASSWORD="********"
export HUBOT_HIPCHAT_ROOMS="@All"
export HUBOT_HIPCHAT_HOST="chat.hipchat.com"
export HUBOT_LOG_LEVEL="debug"
export HUBOT_HIPCHAT_RECONNECT="true"


# JIRA
export HUBOT_JIRA_URL="https://jira.myserver.dk"
export HUBOT_JIRA_USER="hal9000"
export HUBOT_JIRA_PASSWORD="*******"
#   Optional environment variables:
export HUBOT_JIRA_USE_V2="true"
export HUBOT_JIRA_MAXLIST="1000"
#   HUBOT_JIRA_ISSUEDELAY
#   HUBOT_JIRA_IGNOREUSERS


# Confluence
export HUBOT_CONFLUENCE_URL="https://confluence.myserver.dk"
export HUBOT_CONFLUENCE_USER="hal9000"
export HUBOT_CONFLUENCE_PASSWORD="******"
export HUBOT_CONFLUENCE_MAX_RESULTS="100"
exec node_modules/.bin/hubot --adapter hipchat "$@"

Replace package.json with the content from https://github.com/github/hubot-scripts/blob/master/package.json

Kodeblok
{
  "name": "hubot-scripts",
  "version": "2.5.16",
  "author": "hubot",
  "keywords": [
    "hubot",
    "plugin",
    "scripts",
    "campfire",
    "bot",
    "robot"
  ],
  "description": "Allows you to opt in to a variety of scripts",
  "licenses": [{
    "type": "MIT",
    "url": "https://github.com/github/hubot-scripts/raw/master/LICENSE"
  }],
  "repository" : {
    "type": "git",
    "url": "https://github.com/github/hubot-scripts.git"
  },
  "dependencies": {
    "redis": "0.8.4"
  }
}

 

Run the Bot

Kodeblok
bin/hubot --adapter hipchat

...