LoginSignup
9
8

More than 5 years have passed since last update.

macにJenkins導入

Posted at

jenkinsのインストール

homebrewにパッケージが存在するのでそこからインストール

brew install jenkins

jenkinsのインストールを行ったらversionを確認する

brew info jenkins

jenkins: stable 1.513, HEADこのように表示されるので
数値はversionでこれはディレクトリ名になっている。

ここまで確認したら下記のコマンドでjenkinsを立ち上げる

java -jar /usr/local/cellar/jenkins/1.513/libexec/jenkins.war

http://localhost:8080/ にアクセスして管理画面の確認が出来ればインストールは完了

自動起動

この方法で立ち上げる場合macを立ち上げるたびにコマンドを打たなくてはいけなくなり面倒なのでlaunchctlというサービスに登録をしてやり自動的に起動をするように設定してやる

ln -sfv /usr/local/opt/jenkins/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.jenkins.plist
9
8
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
9
8