Life is fun and easy!
不正IP報告数
Okan Sensor
ページへ戻る
印刷
Jenkins/01/install2.3UseHomeBrewOnMacOSX10.11.4ElCapitan
をテンプレートにして作成 ::
UJP
tech_regist2
:Jenkins/01/install2.3UseHomeBrewOnMacOSX10.11.4ElCapitan をテンプレートにして作成
開始行:
*JenkinsをMacOS X 10.11.4 El Capitanにインストールする
**はじめに
このドキュメントでは,JenkinsをhomeBrewを使ってインスト...
**brew listで現在インストールされているパッケージを表示
MBA13:~ ujpadmin$ brew list🆑
openssl readline sqlite subversion tree wget
MBA13:~ ujpadmin$
Jenkinsは入っていない.
**brew searchでjenkinsを探す
探してみる.
MBA13:~ ujpadmin$ brew search jenkins🆑
jenkins je...
homebrew/versions/jenkins-lts Caskroom/cask/jenkin...
MBA13:~ ujpadmin$
追加オプションのようなものもあるようだ.今回は本体だけ...
**brew install jenkinsでインストールを行うが失敗
MBA13:~ ujpadmin$ brew install jenkins🆑
jenkins: Java 1.7+ is required to install this formula.
You can install with Homebrew Cask:
brew install Caskroom/cask/java
You can download from:
http://www.oracle.com/technetwork/java/javase/downloads...
Error: An unsatisfied requirement failed this build.
MBA13:~ ujpadmin$
Javaがインストールされてないと警告が出ている.brew inst...
**Javaをダウンロードしてインストールする
brewを使って,javaをインストールする.
MBA13:~ ujpadmin$ brew cask install java🆑
==> Caveats
This Cask makes minor modifications to the JRE to preven...
packaged applications, as discussed here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=411361
If your Java application still asks for JRE installation...
to reboot or logout/login.
Installing this Cask means you have AGREED to the Oracle...
License Agreement for Java SE at
http://www.oracle.com/technetwork/java/javase/terms/li...
==> Downloading http://download.oracle.com/otn-pub/java/...
########################################################...
==> Verifying checksum for Cask java
==> Running installer for java; your password may be nec...
==> Package installers may write to any location; option...
Password:
管理者権限のあるユーザのパスワードを入力.
==> installer: Package name is JDK 8 Update 92
==> installer: Installing at base path /
==> installer: The install was successful.
🍺 java staged at '/opt/homebrew-cask/Caskroom/java/1.8....
MBA13:~ ujpadmin$
Successfulと表示されインストールが成功.これでJavaのイ...
**brew install jankins2回目
MBA13:~ ujpadmin$ brew install jenkins🆑
==> Downloading http://mirrors.jenkins-ci.org/war/2.3/je...
==> Downloading from http://ftp.yz.yamagata-u.ac.jp/pub/...
########################################################...
==> jar xvf jenkins.war
==> Caveats
Note: When using launchctl the port will be 8080.
To have launchd start jenkins now and restart at login:
brew services start jenkins
Or, if you don't want/need a background service you can ...
jenkins
==> Summary
🍺 /usr/local/Cellar/jenkins/2.3: 6 files, 64.3M, built ...
MBA13:~ ujpadmin$
インストールは問題無く完了した模様.brew services start...
MBA13:~ ujpadmin$ brew doctor🆑
Please note that these warnings are just used to help th...
with debugging if you file an issue. If everything you u...
working fine: please don't worry and just ignore them. T...
**brew doctorで環境確認
インストールしたら環境を確認するdoctorコマンドを実行.
Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used in...
provided by Homebrew. The following tools exist at both ...
svn
svnadmin
svndumpfilter
svnlook
svnserve
svnsync
svnversion
Consider setting your PATH so that /usr/local/bin
occurs before /usr/bin. Here is a one-liner:
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_p...
MBA13:~ ujpadmin$
Subversionへのパスが効いてないと出ている.
**/usr/local/binにパスを設定する
Jenkinsには関係ないが,ここらで設定しておく.
MBA13:~ ujpadmin$ echo 'export PATH="/usr/local/bin:$PAT...
MBA13:~ ujpadmin$ cat ~/.bash_profile🆑
export PATH="/usr/local/bin:$PATH"🈁
MBA13:~ ujpadmin$
パスを設定する.
MBA13:~ ujpadmin$ source ~/.bash_profile🆑
MBA13:~ ujpadmin$ env | grep PATH🆑
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/l...
MBA13:~ ujpadmin$ env | grep PATH🆑
MBA13:~ ujpadmin$
Subversion(SVN)へのパスが通っているか確認する.
MBA13:~ ujpadmin$ which svn🆑
/usr/local/bin/svn🈁
MBA13:~ ujpadmin$
設定されたことが確認できた.
**Jenkinsを起動する
インストール時に指示があったように,コマンドを入力すれ...
MBA13:~ ujpadmin$ ps -ef | grep jenkins🆑
501 8219 4835 0 10:35PM ttys001 0:00.00 grep je...
MBA13:~ ujpadmin$
起動してない.次に,Jenkinsを起動する.
MBA13:~ ujpadmin$ brew services start jenkins🆑
==> Tapping homebrew/services
Cloning into '/usr/local/Library/Taps/homebrew/homebrew-...
remote: Counting objects: 7, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 7 (delta 0), reused 4 (delta 0), pack-reus...
Unpacking objects: 100% (7/7), done.
Checking connectivity... done.
Tapped 0 formulae (32 files, 46.8K)
==> Successfully started `jenkins` (label: homebrew.mxcl...
MBA13:~ ujpadmin$
Successfullyと出ているので成功した模様.プロセスを確認...
MBA13:~ ujpadmin$ ps -ef | grep jenkins🆑
501 8382 1 0 10:35PM ?? 0:08.94 /usr/bi...
-Dmail.smtp.starttls.enable=true -jar /usr/local/opt/jen...
kins.war --httpListenAddress=127.0.0.1 --httpPort=8080
501 8386 4835 0 10:35PM ttys001 0:00.00 grep je...
MBA13:~ ujpadmin$
8080ポートで起動していることがわかる.
**Jenkinsを停止するbrew services stop jenkins
brewのservicesコマンドで停止する.
MBA13:~ ujpadmin$ brew services stop jenkins🆑
Stopping `jenkins`... (might take a while)
==> Successfully stopped `jenkins` (label: homebrew.mxcl...
MBA13:~ ujpadmin$
MBA13:~ ujpadmin$ ps -ef | grep jenkins🆑
501 8640 4835 0 12:29AM ttys001 0:00.00 grep jen...
MBA13:~ ujpadmin$
停止が確認できた.
終了行:
*JenkinsをMacOS X 10.11.4 El Capitanにインストールする
**はじめに
このドキュメントでは,JenkinsをhomeBrewを使ってインスト...
**brew listで現在インストールされているパッケージを表示
MBA13:~ ujpadmin$ brew list🆑
openssl readline sqlite subversion tree wget
MBA13:~ ujpadmin$
Jenkinsは入っていない.
**brew searchでjenkinsを探す
探してみる.
MBA13:~ ujpadmin$ brew search jenkins🆑
jenkins je...
homebrew/versions/jenkins-lts Caskroom/cask/jenkin...
MBA13:~ ujpadmin$
追加オプションのようなものもあるようだ.今回は本体だけ...
**brew install jenkinsでインストールを行うが失敗
MBA13:~ ujpadmin$ brew install jenkins🆑
jenkins: Java 1.7+ is required to install this formula.
You can install with Homebrew Cask:
brew install Caskroom/cask/java
You can download from:
http://www.oracle.com/technetwork/java/javase/downloads...
Error: An unsatisfied requirement failed this build.
MBA13:~ ujpadmin$
Javaがインストールされてないと警告が出ている.brew inst...
**Javaをダウンロードしてインストールする
brewを使って,javaをインストールする.
MBA13:~ ujpadmin$ brew cask install java🆑
==> Caveats
This Cask makes minor modifications to the JRE to preven...
packaged applications, as discussed here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=411361
If your Java application still asks for JRE installation...
to reboot or logout/login.
Installing this Cask means you have AGREED to the Oracle...
License Agreement for Java SE at
http://www.oracle.com/technetwork/java/javase/terms/li...
==> Downloading http://download.oracle.com/otn-pub/java/...
########################################################...
==> Verifying checksum for Cask java
==> Running installer for java; your password may be nec...
==> Package installers may write to any location; option...
Password:
管理者権限のあるユーザのパスワードを入力.
==> installer: Package name is JDK 8 Update 92
==> installer: Installing at base path /
==> installer: The install was successful.
🍺 java staged at '/opt/homebrew-cask/Caskroom/java/1.8....
MBA13:~ ujpadmin$
Successfulと表示されインストールが成功.これでJavaのイ...
**brew install jankins2回目
MBA13:~ ujpadmin$ brew install jenkins🆑
==> Downloading http://mirrors.jenkins-ci.org/war/2.3/je...
==> Downloading from http://ftp.yz.yamagata-u.ac.jp/pub/...
########################################################...
==> jar xvf jenkins.war
==> Caveats
Note: When using launchctl the port will be 8080.
To have launchd start jenkins now and restart at login:
brew services start jenkins
Or, if you don't want/need a background service you can ...
jenkins
==> Summary
🍺 /usr/local/Cellar/jenkins/2.3: 6 files, 64.3M, built ...
MBA13:~ ujpadmin$
インストールは問題無く完了した模様.brew services start...
MBA13:~ ujpadmin$ brew doctor🆑
Please note that these warnings are just used to help th...
with debugging if you file an issue. If everything you u...
working fine: please don't worry and just ignore them. T...
**brew doctorで環境確認
インストールしたら環境を確認するdoctorコマンドを実行.
Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used in...
provided by Homebrew. The following tools exist at both ...
svn
svnadmin
svndumpfilter
svnlook
svnserve
svnsync
svnversion
Consider setting your PATH so that /usr/local/bin
occurs before /usr/bin. Here is a one-liner:
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_p...
MBA13:~ ujpadmin$
Subversionへのパスが効いてないと出ている.
**/usr/local/binにパスを設定する
Jenkinsには関係ないが,ここらで設定しておく.
MBA13:~ ujpadmin$ echo 'export PATH="/usr/local/bin:$PAT...
MBA13:~ ujpadmin$ cat ~/.bash_profile🆑
export PATH="/usr/local/bin:$PATH"🈁
MBA13:~ ujpadmin$
パスを設定する.
MBA13:~ ujpadmin$ source ~/.bash_profile🆑
MBA13:~ ujpadmin$ env | grep PATH🆑
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/l...
MBA13:~ ujpadmin$ env | grep PATH🆑
MBA13:~ ujpadmin$
Subversion(SVN)へのパスが通っているか確認する.
MBA13:~ ujpadmin$ which svn🆑
/usr/local/bin/svn🈁
MBA13:~ ujpadmin$
設定されたことが確認できた.
**Jenkinsを起動する
インストール時に指示があったように,コマンドを入力すれ...
MBA13:~ ujpadmin$ ps -ef | grep jenkins🆑
501 8219 4835 0 10:35PM ttys001 0:00.00 grep je...
MBA13:~ ujpadmin$
起動してない.次に,Jenkinsを起動する.
MBA13:~ ujpadmin$ brew services start jenkins🆑
==> Tapping homebrew/services
Cloning into '/usr/local/Library/Taps/homebrew/homebrew-...
remote: Counting objects: 7, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 7 (delta 0), reused 4 (delta 0), pack-reus...
Unpacking objects: 100% (7/7), done.
Checking connectivity... done.
Tapped 0 formulae (32 files, 46.8K)
==> Successfully started `jenkins` (label: homebrew.mxcl...
MBA13:~ ujpadmin$
Successfullyと出ているので成功した模様.プロセスを確認...
MBA13:~ ujpadmin$ ps -ef | grep jenkins🆑
501 8382 1 0 10:35PM ?? 0:08.94 /usr/bi...
-Dmail.smtp.starttls.enable=true -jar /usr/local/opt/jen...
kins.war --httpListenAddress=127.0.0.1 --httpPort=8080
501 8386 4835 0 10:35PM ttys001 0:00.00 grep je...
MBA13:~ ujpadmin$
8080ポートで起動していることがわかる.
**Jenkinsを停止するbrew services stop jenkins
brewのservicesコマンドで停止する.
MBA13:~ ujpadmin$ brew services stop jenkins🆑
Stopping `jenkins`... (might take a while)
==> Successfully stopped `jenkins` (label: homebrew.mxcl...
MBA13:~ ujpadmin$
MBA13:~ ujpadmin$ ps -ef | grep jenkins🆑
501 8640 4835 0 12:29AM ttys001 0:00.00 grep jen...
MBA13:~ ujpadmin$
停止が確認できた.
ページ名: