2

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 (i.e. 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

Community
  • 1
  • 1
Clive van Hilten
  • 851
  • 5
  • 16
  • 32
  • 2
    If you want to answer your own question, please do so a a *real* answer and accept it. – mtvec Apr 24 '12 at 12:47

1 Answers1

1

If all you want is to have a commit start a jenkins build, then just configure the jenkins job to poll the git repository and start a build whenever a change (=new commit) is found.

joe
  • 231
  • 2
  • 2