LoginSignup
14
12

More than 5 years have passed since last update.

MacにJenkinsを入れてみる

Last updated at Posted at 2015-06-22

OS X 10.10にJenkinsをインストールしてみました。

参考サイト
はい。全く同じ記事があったので参考サイトを見ながらインストール開始。

1.Homebrewのインストール


上記リンクを見ながらインストールしようとしたらコマンドが認識されませんでした。
そもそもJenkinsの前にいろいろ足りないみたいです。
Homebrewが必要みたいだけど。。
以下コマンドを実行するだけ見たい。。

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

インストール待ち。。。。。。。。。。。。。。10分後。。。
インストール終わりました。

2.Jenkinsのインストール


ターミナルからコマンド実行

brew install jenkins

これでインストールは完了。

3.Jenkinsのポート変更


ポートが8080なので8081に変更する。

homebrew.mxcl.jenkins.plist編集

/Users/XXXXX/Library/LaunchAgents/homebrew.mxcl.jenkins.plist
<string>--httpPort=8081</string>

homebrew.mxcl.jenkins.plistを編集したら再起動。

launchctl load ~/Library/LaunchAgents/homebrew.mxcl.jenkins.plist
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.jenkins.plist
launchctl stop homebrew.mxcl.jenkins
launchctl start homebrew.mxcl.jenkins

これでhttp://localhost:8081で起動します。

Mac初心者でJenkins初インストールでも簡単にできました。
おしまい。

14
12
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
14
12