ウンウン悩んで30分ほどかかったのでメモ
状態
Started by user anonymous
Building in workspace /data/data_dir/jobs/suzaki-nishi/workspace
Cloning the remote Git repository
Cloning repository http://xxxxxx:xxx/git/pigs/suzaki-nishi.git
> git init /data/data_dir/jobs/suzaki-nishi/workspace # timeout=10
ERROR: Error cloning remote repo 'origin'
ERROR: Error cloning remote repo 'origin'
Finished: FAILURE
ソースコード管理
● Git
Repository URL : http://xxxxxx:xxx/git/pigs/suzaki-nishi.git
Failed to connect to repository : Error performing command: git ls-remote -h http://xxxxxx:xxx/git/pigs/suzaki-nishi.git HEAD
なおgit ls-remote -hは通るのに。
$ git ls-remote -h http://xxxxxx:xxx/git/pigs/suzaki-nishi.git HEAD
072598b8427648397c511964c4945d6510f37294 refs/heads/dev
ab00b192d5bf7c257aa676214600b2709b7ec083 refs/heads/master
答え
gitが入っていなかった。
別dockerコンテナでやるとたしかにそうなるよね。。
Jenkinsの管理 => システムの設定
Git
Name Default
Path to Git executable git
There's no such executable git in PATH: /usr/local/sbin, /usr/local/bin, /usr/sbin, /usr/bin, /sbin, /bin.
GitプロジェクトをコミットしたタイミングでJenkinsにビルドをしてもらいたい! - kk_Atakaの日記
http://d.hatena.ne.jp/kk_Ataka/20120223/1330001338
構築までの道のり(未検証)
CentOS 7 で GitHubクローンの GitBucket を動かして、Jenkins で自動デプロイ - BLACKND
http://blacknd.com/linux-server/centos7-gitbucket-jenkins-auto-deploy/
CentOSにyumでjenkinsをインストールする - 文系プログラマによるTIPSブログ
http://treeapps.hatenablog.com/entry/2014/06/11/233027
Jenkins
ジェンキンス、ジェンキンズ
CIツールのHudson,Oracleと交渉決裂しJenkinsに改名へ:濃縮還元オレンジニュース|gihyo.jp … 技術評論社
http://gihyo.jp/dev/clip/01/orangenews/vol61/0004
継続的インテグレーションとは 【 CI 】 【 Continuous Integration 】 - 意味/解説/説明/定義 : IT用語辞典
http://e-words.jp/w/E7B699E7B69AE79A84E382A4E383B3E38386E382B0E383ACE383BCE382B7E383A7E383B3.html
DockerコンテナでJenkinsを動かす - Qiita
http://qiita.com/sokutou-metsu/items/4a2c9636c9e6974e2919
jonhadfield/docker-jenkins
https://github.com/jonhadfield/docker-jenkins
$ docker run -p 8081:8081 -v pwd
/jenkins/:/data -i -t centos:centos7 /bin/bash
bash-4.2# yum install java-1.7.0-openjdk git
curl -O http://mirrors.jenkins-ci.org/war/latest/jenkins.war
bash-4.2# java -DJENKINS_HOME=/data/data_dir/ -jar jenkins.war --webroot=/data/webroot/ --httpPort=8081