Play Framework2 on JavaをJenkins.warとGitでCIする その②(Git準備編)
Contents
※もくじはこちら
### 概要
CentOS上に、Play Framework2 on JavaのCI環境を構築していきます。
長くなるので分割で。
長くなるので分割で。
#### 登場人物
- Play Framework 2.2
- Jenkins(Jenkins.war)
- Git
- CentOS 6.4 i386
### 手順その②:Gitの準備
#### Gitのインストール
管理者で
```sh
root$ yum -y install git
```
#### Gitリポジトリの作成
gituserで、ベアリポジトリを作成。
```sh
gituser$ cd
gituser$ git init --bare playapp.git
```
#### ciuserからGitリポジトリへのアクセス設定
- Gitクライアント設定
- sshの秘密鍵・公開鍵を生成
- 公開鍵のコピー
#### ciuserからgitリポジトリへの接続確認
```sh
ciuser$ git clone ssh://gituser@localhost/home/gituser/playapp.git
```
次回へ続く
次回へ続く