cro*_*ies 26 git bitbucket githooks
我刚从GitHub移植到BitBucket的回购.虽然它有很多必需品,但我发现找到创建git commit hook的文档非常困难.
最初我在CentOS服务器上有一个由GitHub钩子触发的ruby应用程序.有谁知道如何在BitBucket环境中实现相同的目标?
谢谢!
编辑:这是ruby应用程序看起来像它有什么帮助:
post '/' do
`rm -rf repofolder`
`git clone https://user@bitbucket.org/user/repo.git`
`sh fast_deploy.sh`
end
Run Code Online (Sandbox Code Playgroud)
cro*_*ies 19
我找到了解决方案.尽管John Percival的回答是正确的,但目前没有对Ruby的支持,通知机制也可行.
Ruby应用程序的代码就在这个问题上.注意它是如何查找帖子的post '/' do.我能够找到支持在这个整洁的查找中发送一个POST到URL:http://read-the-docs.readthedocs.org/en/latest/webhooks.html
鉴于该信息,我能够通过以下方式在BitBucket中创建一个POST挂钩:
http://server.com:4567/| 归档时间: |
|
| 查看次数: |
27498 次 |
| 最近记录: |