jenkins+redmineプラグインを設定
JenkinsとRedmineの連携
いろいろやったけどなんか最新のRedmineプラグインでは動作しないのでグレードダウンしたものを使用する。
本当はビルドしたらそれをRedmineのチケットで発行したかったけどよくわからないのでその辺は保留
nginx設定
設定ファイルを編集し、アップロードファイルサイズを拡張
[root@localhost ~]# vim /etc/nginx/nginx.conf ---- user nginx; worker_processes 2; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; #tcp_nopush on; keepalive_timeout 65; #gzip設定; gzip on; gzip_types text/plain text/xml text/css text/javascript image/x-icon application/xml application/rss+xml application/json application/x-javascript; gzip_disable "MSIE [1-6]\."; gzip_disable "Mozilla/4"; # トークン他 server_tokens off; ignore_invalid_headers on; # ファイルサイズ client_max_body_size 20M; # 設定ファイル読み込み include /etc/nginx/conf.d/*.conf; }
nginxを再起動
# nginxを再起動 [root@localhost ~]# service nginx restart nginx を停止中: [ OK ] nginx を起動中: [ OK ] [root@localhost ~]#
redmineプラグインの登録
「http://updates.jenkins-ci.org/download/plugins/redmine/」へアクセスし「0.13」のファイルをダウンロードする
起動したjenkinsのサイトで「jenkinsの管理」をクリック
プラグインの管理をクリック
インストール完了まで待つ
プラグイン管理のインストールしたものを選択し、「Redmine Plugin」にチェックされていない場合はチェックして、再起動する。
念のため、コマンドからの再起動も行う
[root@localhost ~]# service jenkins restart Shutting down Jenkins [ OK ] Starting Jenkins [ OK ] [root@localhost ~]#
設定されたらメニューに「Redmine - xxxxxxxxx」と表示される
リンクをクリックした場合はそのプロジェクトのページへ移動すること