LoginSignup
19
19

More than 5 years have passed since last update.

HubotでJenkinsジョブを実行する時のメモ

Last updated at Posted at 2014-06-17

HubotでJenkinsジョブを実行する時のメモ

  • VirtualBox 4.3.6 + vagrant 1.6.3 + CentOS 6.5
  • node.js,npm,redisはyumでインストールします。
# nodejs,npm,redisをインストール
sudo yum install -y nodejs npm redis

# redisを起動しておく
sudo /etc/init.d/redis start

# hubotをインストール
sudo npm install -g coffee-script inherits hubot

# hubotを作成
hubot --create myhubot
cd myhubot
npm install

# jenkinsのスクリプトを読み込み
vim hubot-scripts.json
→"jenkins.coffee"を追加

# jenkinsのURLを環境変数に設定
echo 'export HUBOT_JENKINS_URL="http://example.com/jenkins"' >> ~/.bash_profile

# hubotを起動
bin/hubot
Hubot>

# jenkinsのジョブを起動する
Hubot> hubot jenkins build <ビルドジョブの名前>
19
19
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
19
19