[haiku-development] Re: Checker bot for Gerrit

  • From: Suhel Mehta <mehtasuhel@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 22 Mar 2021 10:59:10 +0530

On Mon, Mar 22, 2021 at 4:10 AM saloni goyal <salonig1212@xxxxxxxxx> wrote:


On Sun, Mar 21, 2021 at 12:23 AM Adrien Destugues
<pulkomandy@xxxxxxxxxxxxx> wrote:

20 mars 2021 19:38 "saloni goyal" <salonig1212@xxxxxxxxx> a écrit:

On Sat, Mar 20, 2021 at 3:05 PM Adrien Destugues
<pulkomandy@xxxxxxxxxxxxx> wrote:

Hi,


<snip>


So, right now the concourse runs automated builds only on master
branch of Haiku and we want to automate the process for other branches
like dev etc and when a user uploads a commit or patch it should build
the patch and check whether the code is built or not. Along with that
we have to automate the checks for coding style also. Am I right or is
there something I am missing?

Yes, that's mostly correct except for one thing: in Gerrit we usually don't 
work with branches, but
instead with individual commits/patches. It is a bit different from the 
more common workflow used
for example with Gitlab or Github, that you may be familiar to.

I have tried to understand the gerrit workflow and have set up gerrit
and had integrated jenkins with it. When the code is pushed the
Jensins build it but we have to build it manually by clicking on the
build button, it is not automated yet.
I am working on it to automate the build process and will update you
regarding it soon.
I have followed below links :
https://codechecker.readthedocs.io/en/latest/jenkins_gerrit_integration/
https://nofluffjuststuff.com/magazine/2016/06/understanding_and_applying_gerrit_part_4_integrating_jenkins_with_gerrit

This link might help you :
https://wiki.jenkins.io/display/JENKINS/Gerrit+Trigger/#GerritTrigger-Gerritaccessrights
and please see the changes that need to be done as per the Gerrit version.
If you need help with anything else let us know.

<snip>

-- 
Suhel Mehta
https://github.com/SuhelMehta9

Other related posts: