简体   繁体   中英

EGit and post-commit hook

This is a follow-on to my question at https://stackoverflow.com/questions/10226287/jenkins-git-and-eclipse

I'm trying to get a post-commit hook running which will invoke a Jenkins build. I can create the hook, place it in my native Git (ie not EGit) hooks directory and it works as intended. However, I prefer to have the hook running in my EGit environment as I don't want the complexity of managing two Git environments. I cannot, however, establish where I should place the hook in order for it to be picked up by EGit - any ideas?

=================

Answering my own question - seems EGit cannot do this - see here

如果您要提交的内容只是启动jenkins构建,则只需配置jenkins作业以轮询git存储库,并在发现任何更改(=新提交)时就开始构建。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM