UJP - 技術情報1

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

JenkinsをMacOSX10.14.4Mojaveにインストールする

JenkinsをMacOSX10.14.4Mojaveにインストールする


更新履歴

  • 初版 2019/06/26

はじめに

  • macOS 10.14.4のMojaveに,Jenkinsをインストールする.

パッケージ情報

  • Jenkinsのパッケージを確認.
       $ brew info jenkins🆑
       jenkins: stable 2.182, HEAD🈁
       Extendable open source continuous integration server
       https://jenkins.io/
       Not installed
       From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/jenkins.rb
       ==> Requirements
       Required: java = 1.8 ✔🈁
       ==> Options
       --HEAD
       	Install HEAD version
       ==> 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 just run:
         jenkins
       ==> Analytics
       install: 5,472 (30 days), 17,415 (90 days), 73,639 (365 days)
       install_on_request: 5,169 (30 days), 16,436 (90 days), 67,397 (365 days)
       build_error: 0 (30 days)
       $
  • Jenkinsのバージョンは2.182で,Webサーバのポートは8080であることが確認できる.
  • また,起動時のコマンドも記載されている.

インストールの実施

  • HomeBrewにて,Jenkinsのインストールを行う.
       
       $ brew install jenkins🆑
       Updating Homebrew...
       ==> Auto-updated Homebrew!
       Updated 4 taps (homebrew/cask-versions, homebrew/core, homebrew/cask and caskroom/versions).
       ==> New Formulae
       anime-downloader
       ==> Updated Formulae
       corectl          dnstwist         duck             glooctl          
       terraform        vamp-plugin-sdk
       
       ==> Downloading http://mirrors.jenkins.io/war/2.182/jenkins.war
       ==> Downloading from http://ftp.yz.yamagata-u.ac.jp/pub/misc/jenkins/war/2.182/jenkins.war
       ######################################################################## 100.0%
       ==> 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 just run:
         jenkins
       ==> Summary
       🍺  /usr/local/Cellar/jenkins/2.182: 7 files, 77.6MB, built in 47 seconds
       $
  • インストール完了.

Jenkinsを起動する

  • まずは,プロセスが稼働しているか確認.
       $ ps -ef | grep jenkins🆑
         501 75392 46520   0 12:53AM ttys000    0:00.01 grep jenkins
       $
  • 起動してない.
  • 起動する.
       $ brew services start jenkins🆑
       ==> Tapping homebrew/services
       Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-services'...
       remote: Enumerating objects: 12, done.
       remote: Counting objects: 100% (12/12), done.
       remote: Compressing objects: 100% (9/9), done.
       remote: Total 12 (delta 0), reused 7 (delta 0), pack-reused 0
       Unpacking objects: 100% (12/12), done.
       Tapped 1 command (41 files, 58.9KB).
       ==> Successfully started `jenkins` (label: homebrew.mxcl.jenkins)
       $
  • 起動した模様.
  • プロセスを確認.
       $ ps -ef | grep jenkins🆑
         501 75993     1   0 12:53AM ??         0:07.98 /Library/Java/JavaVirtualMachines
       /adoptopenjdk-8.jdk/Contents/Home/bin/java -Dmail.smtp.starttls.enable=true -jar
       /usr/local/opt/jenkins/libexec/jenkins.war --httpListenAddress=127.0.0.1 --httpPort=8080
         501 75997 46520   0 12:53AM ttys000    0:00.00 grep jenkins
       $
  • プロセスが確認できた.

広告スペース
Google