1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

VagrantにJenkinsを入れてみた

1
Last updated at Posted at 2015-02-25

VagrantにCentOS6.5を構築

Vagrant環境構築方法はこちら

Jenkinsの構築

rootユーザになる

vagrantユーザはパスワードなしでsudoコマンドが使えます

[vagrant@localhost ~]$ sudo su -
[root@localhost ~]# ←ここが「#」になればOK!

wgetのインストール

[root@localhost ~]# yum -y install wget

Javaのインストール

javaをインストール

[root@localhost ~]# yum -y install java-1.8.0-openjdk

Javaのバージョンを確認

[root@localhost ~]# java -version
openjdk version "1.8.0_91"
OpenJDK Runtime Environment (build 1.8.0_91-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)

Jenkinsのインストール

yumのレポジトリにjenkinsを追加

wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key 

Jenkinsをインストール

yum -y install jenkins

Jenkinsの起動

service jenkins start

Jenkinsにアクセス

http://192.168.33.10:8080/
↑このURLは初期設定のURLです。(Vagrantfileの設定次第)

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?