1

I have a GIT setup in my AIX server for a java website.

I have setup Bare repositories where several developers commit their code and I have several Non-Bare repositories hosted in my development server.

I have heard that Jenkins can monitor the changes in GIT-HUB and then run the build process by checking out the latest contents from the GIT-HUB if a new commit is found.

Can I configure Jenkins to monitor my Bare and Non-Bare repositories in my dev server and start the build process when a new commit is found.

Here both GIT and Jenkins is setup on the same Unix Server.

1 Answer 1

0

As long as Jenkins has some means of accessing the git repository, it can monitor it and start a build when changes are detected. If Jenkins is on the same server, you should be able to give it the file system path to the repository.

Note that a single job can only monitor a single repository. That is, if you want to monitor multiple repositories, you either need several jobs or some kind of meta-repository that pulls them together. If this is what you need to do, you might want to consider this plugin, although it is only in an early alpha stage.

5
  • Thanks. Can you suggest any good video tutorials for Jenkins. Mar 5, 2013 at 11:16
  • A few things come up on youtube when you search for "Jenkins". I'm not aware of a full video tutorial. Mar 5, 2013 at 11:38
  • I hope you can always resort to post-commit hook as described here: stackoverflow.com/questions/12794568/… to initiate whatever you need. Mar 5, 2013 at 12:51
  • @dmitry_romanov:Thanks for the reply.Could you give an example of how I can refer a local bare repo located in say /usr/apps/gitrepo in Jenkins. Mar 5, 2013 at 16:24
  • @DarkMatter: I would create alias for push or commit command to trigger the build as described here: bitbucket.org/dromanov/testing_ground/wiki/… Mar 22, 2013 at 6:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.