http://www.atmarkit.co.jp/ait/articles/1608/18/news014.html
mkdir -p ./data/runtime/db
mkdir -p ./data/dump
docker-compose up -d
docker-compose ps
http://localhost:3000/
ユーザの作成
RocketchatBot

mkdir -p ./data/hubot
docker-compose stop
docker-compose rm

docker-compose up -d
docker-compose ps

@rocketchatbot: ping

mkdir ./jenkins_home

docker exec -it 5acf21e1bcb3 /bin/bash
echo '["Jenkins.coffee"]' > /home/hubot/hubot-scripts.json
@rocketchatbot jenkins build sample



[Fri Jan 13 2017 09:00:04 GMT+0000 (UTC)] ERROR Unable to load /home/hubot/node_modules/hubot-scripts/src/scripts/Jenkins: Error: Cannot find module '/home/hubot/node_modules/hubot-scripts/src/scripts/Jenkins'
  at Function.Module._resolveFilename (module.js:336:15)
  at Function.Module._load (module.js:278:25)
  at Module.require (module.js:365:17)
  at require (module.js:384:17)

Jenkinsの管理 > グローバルセキュリティの設定 > CSRF対策 のチェックを外して適用.


@rocketchatbot: show me #1

RESTによるWebサービスを有効にする

プロジェクト選択 > 設定 > 情報 > 最下部のトラッカーから選択

cd /usr/src/redmine/tmp
touch restart.txt



http://gitlab/mygroup/myproject.git

$ cd /var/lib/redmine/plugins
$ git clone https://github.com/koppen/redmine_github_hook.git
$ touch /var/lib/redmine/tmp/restart.txt
redmine再起動
kill -HUP

http://qiita.com/tenten0213/items/91b9598cf1edf930df0c
$ cd $RAILS_ROOT/plugins
$ git clone git://github.com/suer/redmine_webhook.git
$ bundle install --without development test
$ rake redmine:plugins:migrate RAILS_ENV=production
kill -HUP 1
http://hubot:8080/hubot/redmine-notify?room=general


/home/hubot/node_modules/hubot-scripts/src/scripts/hubot-redmine-notifier

WORKDIR /home/hubot
RUN npm install --save hubot-redmine-notifier
RUN echo '["jenkins.coffee", "redmine.coffee"]' > /home/hubot/hubot-scripts.json
echo '["hubot-diagnostics","hubot-help","hubot-google-images","hubot-google-translate","hubot-pugme","hubot-maps","hubot-rules","hubot-shipit", "hubot-redmine-notifier"]' > /home/hubot/external-scripts.json

mkdir /var/lib/repo
/var/lib/repo/mysample.git
git clone --mirror http://d9cc7daae1ac/mygroup/myproject.git
/var/lib/repo/myproject.git
gitlab Web Hooksタブ(identifier)
http://localhost:9090/projects.xml
http://redmine:3000/github_hook?project_id=myproject


http://qiita.com/kounoike/items/bb2768309cbaaaa51196
Web 管理画面から Jenkins の Notification Plugin をインストールしておく。
Add Endpoint をクリックし
Format: JSON
Protocol: HTTP
Event: Job Finalized
URL: http://jenkins:8080/hubot/jenkins-notify?room=&notstrat=FS
Timeout: 30000 は長いので 10000 にしておいてみる
Log: 1
npm install --save hubot-jenkins-notifier 
echo '["hubot-diagnostics","hubot-help","hubot-google-images","hubot-google-translate","hubot-pugme","hubot-maps","hubot-rules","hubot-shipit", "hubot-redmine-notifier", "hubot-jenkins-notifier"]' > /home/hubot/external-scripts.json
http://hubot:8080/hubot/jenkins-notify?room=general&notstrat=FS


http://www.atmarkit.co.jp/ait/articles/1612/07/news011.html
RocketChatの管理画面で「管理」→「サービス連携」→「新しいサービス連携」→「Incoming WebHook」から使用します。

http://localhost:3000/hooks/4WdoP6qQ5AAELMqsx/FWrroQHJCBWz9NETXPGZP7qqpz4P9aWXx8mzECs9JeDBt3Z6
4WdoP6qQ5AAELMqsx/FWrroQHJCBWz9NETXPGZP7qqpz4P9aWXx8mzECs9JeDBt3Z6

http://qiita.com/yuji0602/items/9ee2fe6620da5f36efc9
$ cd /www/redmine/current/plugins
$ git clone https://github.com/sciyoshi/redmine-slack.git redmine_slack
$ bundle install
$ cd ../
$ rake redmine:plugins:migrate RAILS_ENV=production




hubot->redmine
    認証失敗
redmine->hubot
    反応なし
    http://qiita.com/kounoike/items/94218d39cf4a22a98b98
    http://qiita.com/tenten0213/items/91b9598cf1edf930df0c
gitlab->redmine
    http://qiita.com/yaeda/items/72d5c0e3d802c70fea8b
    http://l-light-note.hatenablog.com/entry/2015/09/16/190651
    参照用キーワード
gitlab認証
Jenkinsでのビルドの失敗時にエラーを通知
http://gihyo.jp/dev/serial/01/hubot/0001
redmine
    日本語でエラー
    http://qiita.com/kazuy/items/1a4c0f718c59479e2aa5

docker rm -f $(docker ps -a | sed -n '2,$p' | awk '{ print $1 }')
docker rmi -f $(docker images | sed -n '2,$p' | awk '{ print $3 }')