Hi Harisha, If we have changes across multiple repositories that need to be tested together, our developers push them to the Gerrit review queue and specify a Gerrit topic (push to refs/for/master%topic=ABC). All related changes have the same topic.
The test jobs in Jenkins that are normally auto-triggered on a Gerrit push have a filter so that they do not run if a topic is specified. Instead, when changes have been pushed to all repositories for review, the developer then goes to Jenkins and manually triggers a special test job, specifying the topic to test. That job runs some python code that queries Gerrit to find out what changes in what repositories belong to the topic, and fetches them all, so they can be tested together. At the end of the job, there is some more python code to post back Verified +1or -1 to Gerrit, for all the changes. Our scripts are fairly bespoke to our environment, but you could borrow the general idea. Note: In all our jobs, the checkout from Git repositories is done in a build job step, not using the Jenkins Git SCM. Hope that helps. Matthew Webber From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Harisha Navilarekallu Sent: 06 August 2015 06:58 To: Jenkins Users Subject: Jenkins CI with repo Hi, I have started using Jenkins + Gerrit + Repo combination for CI. The issues faced by me is: Many times for a bug / feature fixing happens over multiple git repositories. But Jenkins picks up each git fix as a separate and try to build and run the test cases, which again ends up in failure. I have seen in old mails in mailing list that this is not possible. (https://groups.google.com/forum/#!topic/repo-discuss/XR_JXlMnqbE) Just wanted to check if some body has suggestions for this issue. [ Hope this is the right forum!! ] Regards, Harisha -- This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message. Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6836E1DC2DDC174C9D64B7860E5AF5FC9EF086EE%40EXCHMBX01.fed.cclrc.ac.uk. For more options, visit https://groups.google.com/d/optout.