Kyotoなんか #4の資料です
概要 Jenkinsは認証設定を行っていないと誰でも全ての操作が出来ます。 1人で使う分には全く問題ないのですが、 会社やチームなど複数人で使う共用Jenkinsサーバーの場合、 ジョブを間違って実行してしまったり消してしまったりなど操作ミスが起きてしまう可能性が出てきます。 そこでJenkinsとLDAPサーバーを連携させて所属チーム毎&ジョブ毎に認証・権限設定を行いたいと思います。 やりたいこと Jenkinsサーバー管理者グループに所属するユーザは全権限を持つ 各チームメンバーはジョブの作成が自由に出来、作成したジョブは参照・実行・削除などなんでも出来るようにする 他チームのジョブは実行・削除どころか参照すら出来ない 今回の例では Jenkinsサーバー管理者グループ名 jenkinsadmin チーム名(グループ名) developers としています。 LDAP設定 ユーザ及びグ
初投稿になります。アルゴリズムの探求者です。より現場に近い話題で情報発信していければと思っています。よろしくお願いします! さて、今回は「HomeRoomで実践中のJenkinsバッチジョブ管理Tip集」というタイトルでお送りします。 Jenkinsと言えば、もう今や知らないエンジニアは居ないだろうという地位を確立したCIツールですが、CIツールとしてではなく、バッチジョブ管理に使おうという活用法があります。WEB上を検索すると、そのような使い方をしているという話は結構聞きますし、明らかにバッチ管理用と思われるJenkinsプラグインも多数あります。しかし、具体的なジョブ設定にまで踏み込んだ情報は意外に少ないなという印象です。 一方、HomeRoomはSpeeeで運営している賃貸情報サイトです。物件情報を毎日最新情報に更新するためのバッチを始め、アクセス分析やデータバックアップなど、様々な
開発環境として Gitlab、Jenkins、Redmine をセットで使っているのですが、それぞれにパスワードの設定が必要となって管理が面倒です。 アカウントを一つに統合したい。ということでやってみました。 環境 Redmine 2.3.0 Jenkins 1.499 Gitlab 5.2 方針 Redmine にプラグインで OAuth プロバイダの機能を追加し、Redmine のアカウントで Jenkins と Gitlab へログインできるようにします。 Redmine に OAuth プロバイダの機能をつける やりたいことに近いプラグインがあったのですが、Rails3 以降の Redmine に対応していなかったので、fork して、ついでに日本語化しておきました。 https://github.com/suer/redmine_oauth_provider http://red
kanonインストール 以下の手順でインストールした。 $ wget http://kanon.ultimania.org/hg/KanonConductor/archive/tip.tar.gz $ tar zxvf tip.tar.gz . $ mv tip kanon-`date +"%Y%m%d"` $ cd kanon-`date +"%Y%m%d"` $ bash kanon-setup | tee kanon-setup_`date +"%Y%m%d"`.log インストール時のエラーを確認した。 $ cat kanon-setup_* * Starting web server apache2 Syntax error on line 11 of /etc/apache2/sites-enabled/vcs: Invalid command 'AuthzSVNAccessF
DBスキーマからテーブル定義書を生成する方法を探していた所、schemaSpyというツールを発見。 これとJenkinsを組み合わせて、常に最新のHTMLテーブル定義書を生成する方法を確立できた。 前提 UbuntuServer11.10 MySQL5.1 JDK1.6系がインストールされていること Jenkins実行サーバで対象のDBにアクセス可能なこと 手順 JDBCコネクタインストール sudo apt-get install libmysql-java # 確認 ls /usr/share/java/mysql.jar schemaSpyのjarを配置 mkdir /var/lib/jenkins/schemaSpy cd /var/lib/jenkins/schemaSpy wget http://jaist.dl.sourceforge.net/project/schemasp
このところ頑張って作っていたBuildHiveがようやっとリリースに漕ぎ着けましたので、使ってやってください。 BuildHiveはCloudBeesのDEV@cloudの一環で、GitHubのリポジトリに対する継続的インテグレーションビルドをとても簡単にセットアップできるサービスです。どなたでも無料で使えます。 トップページには既にBuildHive上でビルドされている様々なプロジェクトが表示されます。新しくプロジェクトをセットアップする為に、BuildHiveにいって右上の赤い「Add your Git repositories」ボタンをクリックします。 GitHubとのOAuth認証を聞かれるので、「Allow」ボタンを押して許可してやってください。 すると、CIビルドをセットアップするGitHubのリポジトリを選ぶ画面が出てくるので、適当なプロジェクトを選んで「Enable」を押し
【研究課題レポート抜粋】Jenkins+Unityで構築するスマフォアプリビルドサーバー | サイバーエージェント 公式エンジニアブログ
Goal Jenkins で達成出来る事は沢山ありますが、この記事では複雑な設定を伴わないで実現可能な、apk の自動生成、テストの自動実行までを対象とします。 またビルドツールも Ant, Maven, Gradle, Ivy 等がありますが、標準でもサポートされており、最小構成な Ant を選択しています。 ※ Jenkins でどこまで自動化したいかによりますが、様々なタスクを実行しようと思うと豊富な Plugin を持つ Maven が便利ではあるので、それはまた別途。 ant でビルド出来る様にする Jenkins で CI するには、まずはプロジェクトをコマンドでビルド出来る必要があります。 Eclipse で作成したプロジェクトでは、そのままではビルドする事が出来ない為、後から Android SDK に含まれるコマンドを利用して Ant 用の build.xml を生成しま
Recently I set up an environment for testing our javascript projects using Jenkins + Testswarm +QUnit on Windows. Here's how I did it: Background: We have a bunch of tests written in Javascript using QUnit and checked in to Github. We'd like to set up a continuous integration system that pull the code from Github, and run the tests on the browsers/devices that we are interested in. After some rese
今後の情報処理分野のトレンドと、Jenkinsの方向性 2012年、翔泳社主催で開催された「Developers Summit」。今回、開発プロセスに関するトラックが設けられ、イベント全体のサブタイトルでもある「10年後も世界で通じるエンジニアであるために」というテーマにおいて、必要な開発現場、開発プロセスの変革に関するセッションが多数実施された。 2月17日には、CI(継続的インテグレーション)ツールとして人気の高い「Jenkins」の開発者兼プロジェクトリーダーである川口耕介氏が「Continuous DeliveryとJenkinsアブストラクト」と題し、今後の情報処理分野におけるトレンドを見据えつつ、Jenkinsがどのような方向性を目指しているのかについて解説を行った。 川口氏は冒頭、自身が手がけるJenkinsに関して、開発のスタート時から7年ほどにわたって継続的に関わってきた
環境 CentOS release 6.2 (Final) JDK 1.6.0_27 Jenkins 1.452 CentOS 6.2 上で Jenkins をセットアップしていたら グラフ表示が文字化け(お豆腐化)してしまった。 Ubuntu ではフォント入れるだけで直った気がするのに。 どうやら Linux 上の Java でお豆腐化するのは FAQ らしいので、以下の手順で直った。 cd /usr/java/jdk1.6.0_27/jre/lib/fonts/ mkdir fallback cd fallback sudo ln -s /usr/share/fonts/vlgothic/VL-Gothic-Regular.ttf . このあと、Jenkins (Tomcat) を再起動し、再度ビルドを実行する。 めでたしめでたし。 参考 Oracle Technology Netwo
JIRAとGithubとJenkinsを組み合わせてチケット駆動開発をするには、どういう流れで、どういう連携が必要なのか、考えてみました。 流れを図式化したものが以下になります。 手順 図の流れに合わせて手順を説明します。 ①チケットを作成する ソースコードを書き始める理由が何であれ、すべての始まりはチケットになります。あらゆる理由がチケットになり得ます。バグもそうですし、機能改善や機能追加もチケットとして一元的に扱います。 チケットという管理方式を用いることの最大の利点は、あらゆる事象をチケットという単一の概念で扱うで扱う事にあると思います。 何らかの理由でソースコードを書く時は、チケットを作成します。作成されたチケットはOpenという状態になります。 ②チケット名でブランチを作成する チケットに着手するには、チケット名でブランチを作成します。これをトリガーに、JIRA側のステータスを
こんにちは。今回は、個人的にホットなトピックであるJenkinsの紹介とその簡単な使い方について書きたいと思います。 Jenkinsって? 一言で言うと「高性能cron」です(先日参加した勉強会でのcactusmanさんの発表から引用させていただきました)。cronにログ管理機能、通知機能、バージョン管理システム連携などがついて、それをGUIで管理できるようなイメージです。正式には継続的インテグレーション(CI)ツールと言われますが、Jenkins導入=CI導入と考えてしまうと敷居が高いので、cronとか自動化ツールぐらいに考えるといいと思います。Jenkinsはすでに世界中のあらゆる企業やプロジェクトで使われています。 Jenkinsでできること 定期的に自動実行したくてもcronでは面倒なことが簡単に実現可能です。バージョン管理システム上のソースに更新があったらテストを走らせ失敗したら
Simple Themeというプラグインを使うと、任意のCSSやJSを読み込ませる事ができるらしい。 イラストはこちら。ほむらさんが「どうして?…どうしてなの?何度やってもビルドできない」とソウルジェムを真っ黒にしながら継続的インテグレーションしてくれますお(バックアップごときがやたらと失敗してるのはバックアップ先のNASの電源が入ってないからでワルプルギスが倒せないわけではありません) しかしJenkinsのHTMLは、ユーザによるCSSカスタマイズを考えずに書かれているようで、結構面倒くさい。左上のJenkinsというロゴは画像で、display:noneで消してしまうとタイトルが無くなってしまうので、JSで画像を文字列に置き換えている。 document.addEventListener("DOMContentLoaded", function(){ var img = docume
※ Blogを書いたのが時間が経ってからなことと、内容も浅くて申し訳ありませんので、末尾の「参考」のところに、皆さんのBlogやTogetterのリンクを掲載させていただきました。 より深い情報をお探しの方は、参考の部分をご参照下さい。皆さんのお探しの情報に、無事たどり着けますように…。 では、はじまり。 Jenkinsさんのお誕生月の2月。勉強会があるということで、家族の許可を得る前にダメ元で申込み…。 意外にも許可が下り、参加できる運びとなりました。 まずは家族の協力に感謝しつつ、感想程度になってしまいますが、まとめを書かせていただきます。 第5回 Jenkins勉強会 (@楽天様) はじまり: さぼてんさん(@cactumanさん)の司会でスタート。 アイスブレイクでは、Jenkinsを何年くらい使っているかとか、どんな言語で利用しているか、挙手でのアンケート。 会場に限って言うと、
システム本部技術部たんぽぽグループの加藤和良です。すこし前の話になりますが Software Design 2012年2月号 にテストのはなしを書きました。gihyo.jp から全文が読めますので、ぜひご覧いただければと思います。なお、現在発売中の2012年3月号にも弊社の佐藤が寄稿しています。 この記事がきっかけになり、先日おこなわれた 第五回 Jenkins 勉強会 でも発表の機会をいただきましたので、その スライド を公開します。 会場の識字率の高さを考慮し (話すことを一字一句書くと先に読まれてしまうので) スライドは文字少なめで作りました。これだけ見ても何を話したかよくわからないと思うので、いくつか補足します。 Jenkins で Perl のプロジェクトを管理する はじめに、Jenkins で Perl のプロジェクトを管理するための、一般・基本的な部分について説明しました。J
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く