{"id":3477,"date":"2016-02-03T15:55:58","date_gmt":"2016-02-03T06:55:58","guid":{"rendered":"http:\/\/aatljapan.wpengine.com\/?p=3477"},"modified":"2016-02-03T15:56:43","modified_gmt":"2016-02-03T06:56:43","slug":"git-hooks-for-continuous-integration","status":"publish","type":"post","link":"https:\/\/www.atlassian.com\/ja\/blog\/git-hooks-for-continuous-integration","title":{"rendered":"Git \u30d5\u30c3\u30af \u3067\u7d99\u7d9a\u7684\u30a4\u30f3\u30c6\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3"},"content":{"rendered":"<div class=\"postcontent\">\n<p>Git \u3092\u9577\u671f\u7684\u306b\u4f7f\u7528\u3057\u3066\u3044\u308b\u65b9\u306f\u3001\u304a\u305d\u3089\u304f Git \u30d5\u30c3\u30af \u3068\u3044\u3046\u540d\u524d\u3092\u8033\u306b\u3057\u305f\u3053\u3068\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u307e\u305f\u3001Git \u30d5\u30c3\u30af\u3092\u5c11\u3057\u4f7f\u7528\u3057\u305f\u3053\u3068\u3082\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002Git \u30d5\u30c3\u30af \u306f\u3001\u7d99\u7d9a\u7684\u30a4\u30f3\u30c6\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u884c\u3046\u4e0a\u3067\u3068\u3066\u3082\u7d20\u6674\u3089\u3057\u3044\u3082\u306e\u3067\u3059\u3002\u305d\u3053\u3067\u3001\u4eca\u56de\u306f\u7d99\u7d9a\u7684\u30a4\u30f3\u30c6\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u95a2\u9023\u306e\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u3092 3 \u3064\u3068\u3001\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306b\u8ffd\u52a0\u53ef\u80fd\u306a\u65e2\u5b58\u306e\u30d5\u30c3\u30af\u3092\u3044\u304f\u3064\u304b\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002Git \u30d5\u30c3\u30af \u3092\u3054\u5b58\u3058\u306a\u3044\u65b9\u3082\u3001\u57fa\u672c\u304b\u3089\u59cb\u3081\u307e\u3059\u306e\u3067\u3054\u5fc3\u914d\u306f\u3044\u308a\u307e\u305b\u3093\u3002<\/p>\n<h2>Git \u30d5\u30c3\u30af \u3068\u306f<\/h2>\n<p>\u30d5\u30c3\u30af\u3068\u306f\u3001\u30b3\u30df\u30c3\u30c8\u3084\u30de\u30fc\u30b8\u306a\u3069\u306e\u64cd\u4f5c\u306e\u524d\u5f8c\u3067\u30ab\u30b9\u30bf\u30e0\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u8d77\u52d5\u3059\u308b\u305f\u3081\u306b Git \u306b\u5099\u308f\u3063\u3066\u3044\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002Git \u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u30b7\u30b9\u30c6\u30e0\u3068\u8003\u3048\u3066\u304f\u3060\u3055\u3044\u3002Git \u30ea\u30dd\u30b8\u30c8\u30ea\u306e .git \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u3092\u898b\u3066\u307f\u308b\u3068\u3001\u300chooks\u300d\u3068\u3044\u3046\u540d\u524d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u898b\u3064\u304b\u308a\u307e\u3059\u3002\u3053\u306e\u4e2d\u306b\u3001\u30d5\u30c3\u30af\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30b5\u30f3\u30d7\u30eb\u30bb\u30c3\u30c8\u304c\u5165\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-33464\" src=\"http:\/\/atlassian.wpengine.netdna-cdn.com\/wp-content\/uploads\/githooksdirectory.png\" alt=\"Git hooks for continuous integration: .git directory\" width=\"603\" height=\"307\" \/><\/p>\n<p class=\"p1\"><span class=\"s1\">Git \u30d5\u30c3\u30af\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u5358\u7d14\u3067\u3001<a href=\"https:\/\/git-scm.com\/book\/ja\/v2\/Git-%E3%81%AE%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%9E%E3%82%A4%E3%82%BA-Git-%E3%83%95%E3%83%83%E3%82%AF\" target=\"_blank\">\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3082\u63c3\u3063\u3066\u3044\u307e\u3059<\/a>\u306e\u3067\u3001\u3053\u3053\u3067\u306f\u7701\u7565\u3057\u307e\u3059\u3002<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">\u30d5\u30c3\u30af\u306f 2 \u3064\u306e\u5927\u304d\u306a\u30af\u30e9\u30b9\u306b\u5206\u3051\u3089\u308c\u307e\u3059\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u3068\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3067\u3059\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u30d5\u30c3\u30af\u306f\u30ed\u30fc\u30ab\u30eb\u306e\u7aef\u672b\u3067\u52d5\u4f5c\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u30d5\u30c3\u30af\u306f Git \u30b5\u30fc\u30d0\u30fc\u3067\u52d5\u4f5c\u3057\u307e\u3059\u3002<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">\u307e\u305f\u3001\u30d5\u30c3\u30af\u3092 pre- \u307e\u305f\u306f post- \u30d5\u30c3\u30af\u306b\u5206\u985e\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002pre-receive \u30d5\u30c3\u30af\u306f\u4f55\u3089\u304b\u306e git \u64cd\u4f5c\u306e\u524d\u306b\u5b9f\u884c\u3055\u308c\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u30ad\u30e3\u30f3\u30bb\u30eb\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u30d5\u30c3\u30af\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u3084\u30c1\u30fc\u30e0\u30e1\u30a4\u30c8\u304c\u8aa4\u3063\u3066\u30b3\u30fc\u30c9\u3092\u30b3\u30df\u30c3\u30c8\u3057\u306a\u3044\u3088\u3046\u306b\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u5b88\u308b\u50cd\u304d\u304c\u3042\u308a\u307e\u3059\u3002post-receive \u30d5\u30c3\u30af\u306f\u64cd\u4f5c\u304c\u5b8c\u4e86\u3057\u305f\u5f8c\u306b\u52d5\u4f5c\u3057\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u30ad\u30e3\u30f3\u30bb\u30eb\u7528\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305d\u306e\u4ee3\u308f\u308a\u306b\u3001post-receive \u30d5\u30c3\u30af\u306f\u958b\u767a\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u4e00\u90e8\u3092\u81ea\u52d5\u5316\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/span><\/p>\n<blockquote>\n<h3><em>Git \u30d5\u30c3\u30af\u3092\u4f7f\u3046\u3053\u3068\u306f\u3001\u4f55\u3067\u3082\u601d\u3044\u901a\u308a\u306b\u52d5\u304f\u5c0f\u3055\u306a\u30ed\u30dc\u30c3\u30c8\u3092\u5b50\u5206\u306b\u6301\u3064\u3088\u3046\u306a\u3082\u306e\u3060 (\u30ef\u30c3\u30cf\u30c3\u30cf\u30c3\uff01)<\/em><\/h3>\n<p><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"http:\/\/atlss.in\/2089Fkp\" data-text=\"&quot;#Git \u30d5\u30c3\u30af\u3092\u4f7f\u3046\u3053\u3068\u306f\u3001\u4f55\u3067\u3082\u601d\u3044\u901a\u308a\u306b\u52d5\u304f\u5c0f\u3055\u306a\u30ed\u30dc\u30c3\u30c8\u3092\u5b50\u5206\u306b\u6301\u3064\u3088\u3046\u306a\u3082\u306e\u3060 (\u30ef\u30c3\u30cf\u30c3\u30cf\u30c3\uff01)&quot;\" data-via=\"AtlassianJapan\" data-count=\"none\">\u30c4\u30a4\u30fc\u30c8<\/a><br \/>\n<script type=\"mce-mce-no\/type\">\/\/ <![CDATA[\n!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=\/^http:\/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+':\/\/platform.twitter.com\/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs'); \/\/ ]]&gt;\n\/\/ ]]><\/script><\/p><\/blockquote>\n<p class=\"p1\"><span class=\"s1\">Git \u30d5\u30c3\u30af\u306f\u4ee5\u4e0b\u306e\u81ea\u52d5\u5316\u3092\u884c\u3044\u307e\u3059\u3002<\/span><\/p>\n<ul>\n<li class=\"p1\"><span class=\"s1\">\u30b3\u30df\u30c3\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u5185\u306b\u95a2\u9023\u3059\u308b\u8ab2\u984c\u306e\u30ad\u30fc\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b<\/span><\/li>\n<li class=\"p1\"><span class=\"s1\">\u30de\u30fc\u30b8\u306e\u524d\u63d0\u6761\u4ef6\u3092\u5b9f\u65bd\u3059\u308b<\/span><\/li>\n<li class=\"p1\"><span class=\"s1\">\u30c1\u30fc\u30e0\u306e\u30c1\u30e3\u30c3\u30c8\u30eb\u30fc\u30e0\u306b\u901a\u77e5\u3092\u9001\u308b<\/span><\/li>\n<li class=\"p1\">\u4ed6\u306e\u30d6\u30e9\u30f3\u30c1\u306b\u5207\u308a\u66ff\u3048\u305f\u5f8c\u306b\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-33465\" src=\"http:\/\/atlassian.wpengine.netdna-cdn.com\/wp-content\/uploads\/githooksgrid.png\" alt=\"Server- and client-side git hooks for continuous interation\" width=\"603\" height=\"332\" \/><\/p>\n<h2 class=\"p1\"><span class=\"s1\">\u30d5\u30a3\u30fc\u30c1\u30e3\u30fc\u30d6\u30e9\u30f3\u30c1\u3067\u30af\u30ea\u30fc\u30f3\u30d3\u30eb\u30c9\u3092\u5b9f\u65bd\u3059\u308b<\/span><\/h2>\n<p class=\"p1\"><span class=\"s1\">\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e pre-receive \u30d5\u30c3\u30af\u306f\u3001\u7d99\u7d9a\u7684\u30a4\u30f3\u30c6\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306b\u3068\u3063\u3066\u7279\u306b\u5f37\u529b\u306a\u3082\u306e\u306b\u306a\u308a\u307e\u3059\u3002\u30b3\u30fc\u30c9\u304c\u7279\u5b9a\u306e\u6761\u4ef6\u3092\u6e80\u305f\u3055\u306a\u3044\u9650\u308a\u3001\u958b\u767a\u8005\u304c\u30de\u30b9\u30bf\u30fc\u306b\u30b3\u30fc\u30c9\u3092\u30d7\u30c3\u30b7\u30e5\u3059\u308b\u3053\u3068\u3092\u9632\u3050\u304b\u3089\u3067\u3059\u3002\u512a\u79c0\u306a\u5fcd\u8005\u304c\u8b77\u885b\u3057\u3066\u3044\u308b\u3088\u3046\u306b\u3001\u60aa\u3044\u30b3\u30fc\u30c9\u304b\u3089\u5b88\u3063\u3066\u304f\u308c\u307e\u3059\u3002<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">\u958b\u767a\u8005\u306f\u5927\u62b5\u306e\u5834\u5408\u8aa0\u5b9f\u306a\u306e\u3067\u3001\u30d6\u30e9\u30f3\u30c1\u3067\u30c6\u30b9\u30c8\u304c\u4e0a\u624b\u304f\u3044\u304b\u306a\u3044\u5834\u5408\u306f\u30de\u30b9\u30bf\u30fc\u306b\u30de\u30fc\u30b8\u3057\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001\u3068\u304d\u306b\u306f\u30c1\u30a7\u30c3\u30af\u3092\u5fd8\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3042\u308b\u3044\u306f\u3001\u4ed6\u306e\u4eba\u3068\u30d6\u30e9\u30f3\u30c1\u3092\u5171\u6709\u3059\u308b\u3068\u304d\u3001\u6700\u5f8c\u306b\u30d6\u30e9\u30f3\u30c1\u306e\u30d3\u30eb\u30c9\u306a\u3069\u3092\u30c1\u30a7\u30c3\u30af\u3057\u305f\u3042\u3068\u306b\u591a\u304f\u306e\u5909\u66f4\u304c\u884c\u308f\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002 <\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">\u305d\u3053\u3067\u79c1\u305f\u3061\u306f\u3001\u30de\u30b9\u30bf\u30fc\u3078\u306e\u30de\u30fc\u30b8\u3092\u8abf\u3079\u308b\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u30d5\u30c3\u30af\u3092\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u30d5\u30c3\u30af\u304c\u30de\u30fc\u30b8\u3092\u767a\u898b\u3059\u308b\u3068\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u30d6\u30e9\u30f3\u30c1\u4e0a\u306e\u6700\u65b0\u306e\u30d3\u30eb\u30c9\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3001\u30c6\u30b9\u30c8\u306e\u5931\u6557\u304c\u3042\u308b\u5834\u5408\u306f\u30de\u30fc\u30b8\u3092\u62d2\u5426\u3057\u307e\u3059\u3002\u79c1\u306e\u540c\u50da\u3068\u30a2\u30c8\u30e9\u30b7\u30a2\u30f3\u306e\u958b\u767a\u8005 <a href=\"https:\/\/twitter.com\/kannonboy\" target=\"_blank\">Tim Pettersen<\/a> \u304c<\/span>\u305d\u306e\u305f\u3081\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u304d\u307e\u3057\u305f\u3002\u3053\u308c\u306f <a href=\"http:\/\/ja.atlassian.com\/software\/bamboo\">Bamboo<\/a> \u3068\u4f75\u305b\u3066\u52d5\u4f5c\u3057\u3001<a href=\"https:\/\/bitbucket.org\/tpettersen\/git-ci-hooks\/src\/aad37a40bd0ffdef9a4188f1a7e1e5d768ca0fd1\/update-green-builds-bamboo.rb\">Bitbucket \u4e0a\u3067\u5229\u7528\u53ef\u80fd<\/a>\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u7686\u3055\u3093\u3082\u3053\u308c\u3092\u5165\u624b\u3057\u3001\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2 class=\"p2\">\u82e6\u52b4\u3057\u3066\u78ba\u4fdd\u3057\u305f\u30b3\u30fc\u30c9\u30ab\u30d0\u30ec\u30c3\u30b8\u3092\u4fdd\u8b77\u3059\u308b<\/h2>\n<p class=\"p1\"><span class=\"s1\">\u79c1\u306f\u3053\u308c\u307e\u3067\u3001\u591a\u304f\u306e\u30c1\u30fc\u30e0\u304c\u30b3\u30fc\u30c9\u30ab\u30d0\u30ec\u30c3\u30b8\u306e\u7dad\u6301\u3067\u82e6\u52b4\u3057\u3066\u3044\u308b\u59ff\u3092\u898b\u3066\u304d\u307e\u3057\u305f\u3002\u30c6\u30b9\u30c8\u3067\u4f55\u5ea6\u3082\u9061\u3063\u3066\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u3092\u30ab\u30d0\u30fc\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u305a\u3001\u30c6\u30b9\u30c8\u304c\u5f37\u5316\u3055\u308c\u306a\u3044\u307e\u307e\u591a\u304f\u306e\u6a5f\u80fd\u304c\u8ffd\u52a0\u3055\u308c\u308b\u3053\u3068\u3067\u3001\u82e6\u52b4\u3057\u3066\u78ba\u4fdd\u3057\u305f\u30ab\u30d0\u30ec\u30c3\u30b8\u304c\u5931\u308f\u308c\u3066\u3044\u304f\u306e\u306f\u30b9\u30c8\u30ec\u30b9\u304c\u305f\u307e\u308a\u307e\u3059\u3002\u305d\u3053\u3067 Tim \u306f\u3001<\/span>\u30b3\u30fc\u30c9\u30ab\u30d0\u30ec\u30c3\u30b8\u304c\u5931\u308f\u308c\u306a\u3044\u3088\u3046\u306b\u30de\u30b9\u30bf\u30fc\u3092\u4fdd\u8b77\u3059\u308b<a href=\"https:\/\/bitbucket.org\/tpettersen\/git-ci-hooks\/src\/aad37a40bd0ffdef9a4188f1a7e1e5d768ca0fd1\/update-coverage-bamboo.rb\"> pre-receive \u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u30d5\u30c3\u30af\u3082\u66f8\u304d\u307e\u3057\u305f\u3002<\/a><\/p>\n<p class=\"p1\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-33466\" src=\"http:\/\/atlassian.wpengine.netdna-cdn.com\/wp-content\/uploads\/githookscodecoverage.png\" alt=\"Sample git hooks for continuous integration\" width=\"602\" height=\"347\" \/><\/p>\n<p class=\"p2\">\u3053\u306e\u30d5\u30c3\u30af\u306f\u30de\u30b9\u30bf\u30fc\u3078\u306e\u30de\u30fc\u30b8\u3082\u8abf\u3079\u3001\u7d99\u7d9a\u7684\u30a4\u30f3\u30c6\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u30fc\u306b\u30b3\u30fc\u30eb\u30a2\u30a6\u30c8\u3059\u308b\u3053\u3068\u3067\u30de\u30b9\u30bf\u30fc\u4e0a\u306e\u73fe\u5728\u306e\u30b3\u30fc\u30c9\u30ab\u30d0\u30ec\u30c3\u30b8\u3068\u30d6\u30e9\u30f3\u30c1\u4e0a\u306e\u30ab\u30d0\u30ec\u30c3\u30b8\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002\u30d6\u30e9\u30f3\u30c1\u306e\u30ab\u30d0\u30ec\u30c3\u30b8\u304c\u4f4e\u4e0b\u3059\u308b\u5834\u5408\u3001\u30de\u30fc\u30b8\u306f\u62d2\u5426\u3055\u308c\u307e\u3059\u3002<\/p>\n<p class=\"p2\"><span style=\"color: #000000;\">\u591a\u304f\u306e\u7d99\u7d9a\u7684\u30a4\u30f3\u30c6\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u30fc\u306f\u3001\u30ea\u30e2\u30fc\u30c8 API \u7d4c\u7531\u3067\u30b3\u30fc\u30c9\u30ab\u30d0\u30ec\u30c3\u30b8\u30c7\u30fc\u30bf\u3092\u516c\u958b\u3057\u307e\u305b\u3093\u3002\u305d\u3053\u3067\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u30b3\u30fc\u30c9\u30ab\u30d0\u30ec\u30c3\u30b8\u30ec\u30dd\u30fc\u30c8\u3092\u660e\u3089\u304b\u306b\u3057\u307e\u3059\u3002\u3053\u308c\u3092\u884c\u3046\u306b\u306f\u3001\u30de\u30b9\u30bf\u30fc\u3068\u30d6\u30e9\u30f3\u30c1\u30d3\u30eb\u30c9\u306e\u4e21\u65b9\u3067\u30ec\u30dd\u30fc\u30c8\u3092\u767a\u884c\u3059\u308b\u3088\u3046\u306b\u30d3\u30eb\u30c9\u3092\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30ec\u30dd\u30fc\u30c8\u304c\u767a\u884c\u3055\u308c\u308b\u3068\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u7d99\u7d9a\u7684\u30a4\u30f3\u30c6\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u30fc\u306b\u30b3\u30fc\u30eb\u3059\u308b\u3053\u3068\u3067\u3001\u30de\u30b9\u30bf\u30fc\u304b\u3089\u6700\u65b0\u306e\u30ab\u30d0\u30ec\u30c3\u30b8\u30ec\u30dd\u30fc\u30c8\u3092\u624b\u306b\u5165\u308c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30d6\u30e9\u30f3\u30c1\u30ab\u30d0\u30ec\u30c3\u30b8\u306b\u3064\u3044\u3066\u306f\u3001\u6700\u65b0\u306e\u30d3\u30eb\u30c9\u3001\u307e\u305f\u306f\u30de\u30fc\u30b8\u3055\u308c\u308b\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9 (\u30b3\u30df\u30c3\u30c8) \u306b\u95a2\u9023\u3059\u308b\u30d3\u30eb\u30c9\u304b\u3089\u30ab\u30d0\u30ec\u30c3\u30b8\u30ec\u30dd\u30fc\u30c8\u3092\u624b\u306b\u5165\u308c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p class=\"p2\">\u8aa4\u89e3\u306e\u7121\u3044\u3088\u3046\u306b\u8a00\u3063\u3066\u304a\u304f\u3068\u3001\u3053\u306e\u30d5\u30c3\u30af\u306f\u3001\u30d3\u30eb\u30c9\u306e 1 \u3064\u3067\u3059\u3067\u306b\u30b3\u30fc\u30c9\u30ab\u30d0\u30ec\u30c3\u30b8\u304c\u78ba\u4fdd\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u3068\u307f\u306a\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30d5\u30c3\u30af\u304c\u9b54\u6cd5\u306e\u3088\u3046\u306b\u6a5f\u80fd\u3059\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3001\u5358\u306b\u30e6\u30fc\u30b6\u30fc\u306e\u30d3\u30eb\u30c9\u7d50\u679c\u306e\u30ab\u30d0\u30ec\u30c3\u30b8\u30c7\u30fc\u30bf\u3092\u8abf\u3079\u308b\u3060\u3051\u3067\u3059\u3002\u3053\u306e\u30d5\u30c3\u30af\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067 Bamboo \u3068\u4f75\u305b\u3066\u52d5\u4f5c\u3057\u3001\u3055\u3089\u306b <a href=\"http:\/\/ja.atlassian.com\/software\/clover\" target=\"_blank\">Clover<\/a> (\u30a2\u30c8\u30e9\u30b7\u30a2\u30f3\u306e Java \u3068 Groovy \u7528\u30b3\u30fc\u30c9\u30ab\u30d0\u30ec\u30c3\u30b8\u30c4\u30fc\u30eb) \u3067\u3082\u52d5\u4f5c\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u3053\u3068\u3067\u3001\u4ed6\u306e\u30d3\u30eb\u30c9\u30b5\u30fc\u30d0\u30fc\u3084\u30b3\u30fc\u30c9\u30ab\u30d0\u30ec\u30c3\u30b8\u30c4\u30fc\u30eb\u3068\u7d71\u5408\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h2 class=\"p2\">\u30d6\u30e9\u30f3\u30c1\u30d3\u30eb\u30c9\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b<\/h2>\n<p class=\"p2\">\u306a\u305c\u306a\u3089\u3001\u53cb\u4eba\u3067\u3042\u308c\u3070\u3001\u305d\u306e\u53cb\u4eba\u306b\u58ca\u308c\u305f\u30d6\u30e9\u30f3\u30c1\u3092\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3055\u305b\u308b\u3053\u3068\u306f\u306a\u3044\u304b\u3089\u3067\u3059\u3002<\/p>\n<p class=\"p2\">\u3053\u3053\u306b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9 Git \u30d5\u30c3\u30af\u3067\u904a\u3076\u30c1\u30e3\u30f3\u30b9\u304c\u3042\u308a\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u30a6\u30a4\u30f3\u30c9\u30a6\u5185\u3067<a href=\"https:\/\/bitbucket.org\/tpettersen\/post-checkout-build-status\/src\">\u30d3\u30eb\u30c9\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u8868\u793a\u3059\u308b ost-checkout \u30d5\u30c3\u30af\u30b9\u30af\u30ea\u30d7\u30c8<\/a>\u3082 Tim \u304c\u4f5c\u308a\u307e\u3057\u305f\u3002<span style=\"color: #000000;\">\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3001\u30d6\u30e9\u30f3\u30c1\u306e\u30d8\u30c3\u30c9\u30ea\u30d3\u30b8\u30e7\u30f3\u756a\u53f7\u3092\u30ed\u30fc\u30ab\u30eb\u30b3\u30d4\u30fc\u304b\u3089\u53d6\u5f97\u3057\u3001\u7d99\u7d9a\u7684\u30a4\u30f3\u30c6\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u30fc\u306b\u30af\u30a8\u30ea\u3092\u767a\u884c\u3057\u3066\u305d\u306e\u30ea\u30d3\u30b8\u30e7\u30f3\u304c\u30d3\u30eb\u30c9\u3055\u308c\u305f\u304b\u3069\u3046\u304b\u3092\u8abf\u3079\u3001\u3082\u3057\u30d3\u30eb\u30c9\u3055\u308c\u3066\u3044\u308c\u3070\u305d\u306e\u30d3\u30eb\u30c9\u304c\u6210\u529f\u3057\u305f\u304b\u3069\u3046\u304b\u3092\u8abf\u3079\u307e\u3059\u3002<\/span><\/p>\n<p class=\"p2\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-33467\" src=\"http:\/\/atlassian.wpengine.netdna-cdn.com\/wp-content\/uploads\/githookpostcheckout.png\" alt=\"Client-side git hooks for continuous integration\" width=\"602\" height=\"291\" \/><\/p>\n<p class=\"p2\"><span style=\"color: #000000;\">\u30de\u30b9\u30bf\u30fc\u304b\u3089\u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u308a\u305f\u3044\u3067\u3059\u3088\u306d\u3002\u3053\u306e\u30d5\u30c3\u30af\u306f\u30de\u30b9\u30bf\u30fc\u4e0a\u306e head \u30b3\u30df\u30c3\u30c8\u304c\u6b63\u5e38\u306b\u30d3\u30eb\u30c9\u3067\u304d\u304b\u305f\u3069\u3046\u304b\u3092\u6559\u3048\u3066\u304f\u308c\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u300c\u5b89\u5168\u306a\u300d\u30b3\u30df\u30c3\u30c8\u3067\u30d5\u30a3\u30fc\u30c1\u30e3\u30fc\u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u6210\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u307e\u305f\u3001\u30ea\u30d3\u30b8\u30e7\u30f3\u306e\u30d3\u30eb\u30c9\u304c\u5931\u6557\u3057\u305f\u3053\u3068\u3092\u30d5\u30c3\u30af\u304c\u4f1d\u3048\u308b\u5834\u5408\u306f\u3001\u30c1\u30fc\u30e0\u306e\u30a6\u30a9\u30fc\u30eb\u30dc\u30fc\u30c9\u306b\u305d\u306e\u30d6\u30e9\u30f3\u30c1\u306e\u30b0\u30ea\u30fc\u30f3\u30d3\u30eb\u30c9\u304c\u8868\u793a\u3055\u308c\u307e\u3059 (\u9006\u306e\u5834\u5408\u3082\u540c\u69d8)\u3002\u3053\u308c\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u30b3\u30d4\u30fc\u304c\u53e4\u3044\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u6700\u65b0\u7248\u3092\u53d6\u5f97\u3059\u308b\u304b\u30ed\u30fc\u30ab\u30eb\u30b3\u30d4\u30fc\u3092\u4f7f\u3063\u3066\u4f5c\u696d\u3092\u7d99\u7d9a\u3059\u308b\u304b\u306f\u30e6\u30fc\u30b6\u30fc\u6b21\u7b2c\u3067\u3059\u3002<\/span><\/p>\n<p class=\"p2\">\u30a2\u30c8\u30e9\u30b7\u30a2\u30f3\u306e\u958b\u767a\u8005\u306f\u3001\u3053\u306e\u30d5\u30c3\u30af\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u982d\u3092\u75db\u3081\u3066\u3044\u305f\u591a\u304f\u306e\u554f\u984c\u304b\u3089\u89e3\u653e\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u3053\u3067\u8aac\u660e\u3057\u305f\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u30d5\u30c3\u30af\u3092\u63a1\u7528\u3059\u308b\u3088\u3046\u306b\u30c1\u30fc\u30e0\u3092\u8aac\u5f97\u3067\u304d\u306a\u3044\u65b9\u306f\u3001\u305b\u3081\u3066\u30ed\u30fc\u30ab\u30eb\u306e\u7aef\u672b\u306b\u3053\u308c\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u5f8c\u6094\u306f\u3057\u306a\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h2 class=\"p2\">\u81ea\u52d5\u5316\u3067\u3055\u3089\u306b\u4fbf\u5229\u306b<\/h2>\n<p class=\"p2\">\u3053\u3053\u3067\u7d39\u4ecb\u3057\u305f\u7d99\u7d9a\u7684\u30a4\u30f3\u30c6\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u7528\u306e Git \u30d5\u30c3\u30af\u306f\u3059\u3079\u3066\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067 Bamboo\u3001Clover\u3001<a href=\"http:\/\/www.bitbucket.org\/\">Bitbucket<\/a> \u3068\u4f75\u305b\u3066\u3054\u5229\u7528\u306b\u306a\u308c\u307e\u3059\u3002\u307e\u305f\u3001Git \u30d5\u30c3\u30af\u306f\u30d9\u30f3\u30c0\u30fc\u306b\u4f9d\u5b58\u3057\u306a\u3044\u3053\u3068\u3092\u5fd8\u308c\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002\u305d\u306e\u305f\u3081\u3001\u30d5\u30c3\u30af\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u304a\u624b\u6301\u3061\u306e\u3069\u3093\u306a\u30c4\u30fc\u30eb\u3068\u3082\u4f75\u305b\u3066\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p class=\"p2\">\u7d99\u7d9a\u7684\u30a4\u30f3\u30c6\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306b Git \u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u306b\u8208\u5473\u304c\u3042\u308b\u65b9\u306f\u3001\u5f53\u793e\u306e\u6700\u65b0\u30de\u30a4\u30af\u30ed\u30b5\u30a4\u30c8 The Pipeline \u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002\u3053\u3061\u3089\u3067\u306f\u3001JIRA\u3001Bitbucket\u3001Bamboo \u3092\u4f7f\u7528\u3057\u3066\u7d99\u7d9a\u7684\u30c7\u30ea\u30d0\u30ea\u30fc\u3092\u884c\u3046\u3053\u3068\u306b\u7126\u70b9\u3092\u5f53\u3066\u3066\u3044\u307e\u3059\u3002\u7d99\u7d9a\u7684\u30c7\u30ea\u30d0\u30ea\u30fc\u306b Git \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u4f7f\u7528\u3059\u308b\u30d2\u30f3\u30c8\u3084\u3001\u30a2\u30c8\u30e9\u30b7\u30a2\u30f3\u30c4\u30fc\u30eb\u306b\u63a5\u7d9a\u3057\u3066\u7d99\u7d9a\u7684\u30c7\u30ea\u30d0\u30ea\u30fc\u3092\u884c\u3046\u305f\u3081\u306e\u60c5\u5831\u3082\u8c4a\u5bcc\u306b\u3054\u7528\u610f\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p class=\"p2\" style=\"text-align: center;\"><a class=\"bac-button\" href=\"http:\/\/ja.atlassian.com\/continuous-delivery\" onclick=\"analytics.track('clicked', { object: 'button', label: 'blog-git-hooks-continuous-delivery', core_funnel: false });\" target=\"_blank\">The Pipeline \u3067\u7d99\u7d9a\u7684\u30c7\u30ea\u30d0\u30ea\u30fc\u306b\u3064\u3044\u3066\u5b66\u3076<\/a><\/p>\n<p>&nbsp;<\/p>\n<p style=\"font-size: 12px;\"><em>\u3053\u306e\u8a18\u4e8b\u304c\u304a\u5f79\u306b\u7acb\u3061\u307e\u3057\u305f\u304b? \u30bd\u30fc\u30b7\u30e3\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u30b7\u30a7\u30a2\u3057\u3066\u3001Git \u30d5\u30c3\u30af\u3092\u5e83\u3081\u308b\u304a\u624b\u4f1d\u3044\u3092\u3057\u3066\u304f\u3060\u3055\u3044\uff01<\/em><\/p>\n<\/div>\n<p><!--\/postcontent--><br \/>\n<small><br \/>\n*\u672c\u30d6\u30ed\u30b0\u306f Atlassian Blogs \u306e\u7ffb\u8a33\u3067\u3059\u3002\u672c\u6587\u4e2d\u306e\u65e5\u6642\u306a\u3069\u306f\u6295\u7a3f\u5f53\u6642\u306e\u3082\u306e\u3067\u3059\u306e\u3067\u3054\u4e86\u627f\u304f\u3060\u3055\u3044\u3002<br \/>\n*\u539f\u6587 : 2016 \u5e74 2 \u6708 1 \u65e5 \"<a href=\"http:\/\/blogs.atlassian.com\/2016\/02\/git-hooks-for-continuous-integration\/\" target=\"_blank\">Git hooks for continuous integration<\/a>\"<br \/>\n<\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Git \u3092\u9577\u671f\u7684\u306b\u4f7f\u7528\u3057\u3066\u3044\u308b\u65b9\u306f\u3001\u304a\u305d\u3089\u304f Git \u30d5\u30c3\u30af \u3068\u3044\u3046\u540d\u524d\u3092\u8033\u306b\u3057\u305f\u3053\u3068\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u307e\u305f\u3001Git \u30d5\u30c3\u30af\u3092\u5c11\u3057\u4f7f\u7528\u3057\u305f\u3053\u3068\u3082\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002Git \u30d5\u30c3&hellip;<\/p>\n","protected":false},"author":217,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"bitbucket_subtitle":"","footnotes":""},"categories":[1],"tags":[630,389,103,631,205,220],"coauthors":[],"class_list":["post-3477","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-continuous-delivery","tag-continuous-integration","tag-git","tag-git-","tag-205","tag-220"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/3477","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/users\/217"}],"replies":[{"embeddable":true,"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=3477"}],"version-history":[{"count":0,"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/3477\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=3477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=3477"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=3477"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/coauthors?post=3477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}