Gerrit Webhooks integration with Jenkins Multibranch pipeline

397 views
Skip to first unread message

Anjitha Sajeev

unread,
Feb 23, 2023, 11:36:20 PM2/23/23
to Repo and Gerrit Discussion
Hi,
We are trying to integrate Gerrit Webhooks with Jenkins Multibranch pipeline. Tried all the steps covered in the Gerrit webhooks plugin documentation and other references. But couldn't get the expected result.
Could anyone help on this how to complete the integration as we are blocking here.

Thanks,
Anjitha

Sven Selberg

unread,
Feb 24, 2023, 2:23:13 AM2/24/23
to Repo and Gerrit Discussion
On Friday, February 24, 2023 at 5:36:20 AM UTC+1 Anjitha Sajeev wrote:
Hi,
We are trying to integrate Gerrit Webhooks with Jenkins Multibranch pipeline. Tried all the steps covered in the Gerrit webhooks plugin documentation and other references. But couldn't get the expected result.

Hi Anjitha,

If you can share what steps you have taken and what sort of results you did get it will be easier to pin-point what went wrong.

Anjitha Sajeev

unread,
Feb 24, 2023, 3:50:18 AM2/24/23
to Repo and Gerrit Discussion
Hi Sven,

We followed the steps mentioned in various documentations and tried.

PFB few links:

Steps followed:
Added the Gerrit webhooks configuration in the gerrit.config file and added the events as well. 
But the issue currently we are facing is: whenever any code is committed/pushed to any branch, the Jenkins is not triggering the build automatically. 

Thanks,
Anjitha

Sven Selberg

unread,
Feb 24, 2023, 4:26:35 AM2/24/23
to Repo and Gerrit Discussion
On Friday, February 24, 2023 at 9:50:18 AM UTC+1 Anjitha Sajeev wrote:
Hi Sven,

We followed the steps mentioned in various documentations and tried.

PFB few links:

Steps followed:
Added the Gerrit webhooks configuration in the gerrit.config file and added the events as well. 

I gather you mean that you have configured the remote in webhooks.config on refs/meta/config branch?
 
But the issue currently we are facing is: whenever any code is committed/pushed to any branch, the Jenkins is not triggering the build automatically. 

Have you verified that the webhook is triggered? Set the webhook to some simple webserver and listen to the requests or check Jenkins' access-logs.
If it works, do you see anything in Jenkins' error logs?
If it doesn't work, do you see anything in Gerrit's error logs?
Reply all
Reply to author
Forward
0 new messages