BitBucketのPOST hookを使う

前提

  • コマンドファイル名称

deploy_[リポジトリ名称]_[ブランチ名称]



* 動作テスト  
* Windowsで動作テストを行っていない


## BitBucketから送られてくるパラメータ

{ "canon_url": "https://bitbucket.org", "commits": [ { "author": "marcus", "branch": "master", "files": [ { "file": "somefile.py", "type": "modified" } ], "message": "Added some more things to somefile.py\n", "node": "620ade18607a", "parents": [ "702c70160afc" ], "raw_author": "Marcus Bertrand marcus@somedomain.com", "raw_node": "620ade18607ac42d872b568bb92acaa9a28620e9", "revision": null, "size": -1, "timestamp": "2012-05-30 05:58:56", "utctimestamp": "2012-05-30 03:58:56+00:00" } ], "repository": { "absolute_url": "/marcus/project-x/", "fork": false, "is_private": true, "name": "Project X", "owner": "marcus", "scm": "git", "slug": "project-x", "website": "https://atlassian.com/" }, "user": "marcus" }