Quick start guide for Gerrit + Jenkins with checks

726 views
Skip to first unread message

johann...@gmail.com

unread,
Oct 28, 2021, 6:48:27 AM10/28/21
to Repo and Gerrit Discussion
Hi,

Is there a document describing how to setup Jenkins to build changes uploaded in Gerrit using the checks plugin?

I found some fragments here and there, but it is hard to know if it is old or new information.

Regards
Johannes

Luca Milanesio

unread,
Oct 28, 2021, 4:11:50 PM10/28/21
to Repo and Gerrit Discussion, Luca Milanesio, johann...@gmail.com

On 28 Oct 2021, at 11:48, johann...@gmail.com <johann...@gmail.com> wrote:

Hi,

Is there a document describing how to setup Jenkins to build changes uploaded in Gerrit using the checks plugin?

I was planning a few months ago to write a full tutorial, but then the checks plugin was deprecated [1].
There is a brand-new Checks API [2] in Gerrit since v3.4, but we haven’t yet developed an implementation for Jenkins at the moment. 

HTH

Luca.

[2] https://gerrit-documentation.storage.googleapis.com/Documentation/3.4.1/pg-plugin-checks-api.html


I found some fragments here and there, but it is hard to know if it is old or new information.

Regards
Johannes

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/30b18875-2887-440e-91d5-dba82f00f0afn%40googlegroups.com.

johann...@gmail.com

unread,
Oct 28, 2021, 4:51:31 PM10/28/21
to Repo and Gerrit Discussion
On Thursday, October 28, 2021 at 10:11:50 PM UTC+2 lucamilanesio wrote:

On 28 Oct 2021, at 11:48, johann...@gmail.com <johann...@gmail.com> wrote:

Hi,

Is there a document describing how to setup Jenkins to build changes uploaded in Gerrit using the checks plugin?

I was planning a few months ago to write a full tutorial, but then the checks plugin was deprecated [1].
I was under the same impression, but then I was confused as I saw in [2] that "Gerrit Checks Plugin" uses the "Checks API" :)
 
There is a brand-new Checks API [2] in Gerrit since v3.4, but we haven’t yet developed an implementation for Jenkins at the moment. 
Ok, so at gerrit-review.googlesource.com/gerrit-ci.gerritforge.com you still use the "Gerrit Checks Plugin" together with the Jenkins "Gerrit Code Review" plugin (which is deprecated)?

Regards
/Johannes

Luca Milanesio

unread,
Oct 28, 2021, 5:08:26 PM10/28/21
to Repo and Gerrit Discussion, Luca Milanesio, johann...@gmail.com

On 28 Oct 2021, at 21:51, johann...@gmail.com <johann...@gmail.com> wrote:

On Thursday, October 28, 2021 at 10:11:50 PM UTC+2 lucamilanesio wrote:

On 28 Oct 2021, at 11:48, johann...@gmail.com <johann...@gmail.com> wrote:

Hi,

Is there a document describing how to setup Jenkins to build changes uploaded in Gerrit using the checks plugin?

I was planning a few months ago to write a full tutorial, but then the checks plugin was deprecated [1].
I was under the same impression, but then I was confused as I saw in [2] that "Gerrit Checks Plugin" uses the "Checks API" :)

Agreed, possibly should it be mentioned that the Checks plugin is deprecated in [2]?

 
There is a brand-new Checks API [2] in Gerrit since v3.4, but we haven’t yet developed an implementation for Jenkins at the moment. 
Ok, so at gerrit-review.googlesource.com/gerrit-ci.gerritforge.com you still use the "Gerrit Checks Plugin" together with the Jenkins "Gerrit Code Review" plugin (which is deprecated)?

Yes, we still use the Checks plugin, which is deprecated. I have actually issues at times, but the Google guys have been very cooperative in fixing them even if the plugin is deprecated.
I am looking forward to work on a new Jenkins plugin integrated with the Checks API, which is most likely going to integrated with the “Gerrit Code Review plugin for Jenkins” (NOT deprecated, see [3]).

HTH

Luca.



Regards
/Johannes
 

I found some fragments here and there, but it is hard to know if it is old or new information.

Regards
Johannes

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/30b18875-2887-440e-91d5-dba82f00f0afn%40googlegroups.com.



--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.

Ben Rohlfs

unread,
Oct 28, 2021, 5:16:11 PM10/28/21
to Luca Milanesio, Repo and Gerrit Discussion, johann...@gmail.com
I can help writing the new plugin code. I "just" need the correct HTTP URLs for fetching the data per change. :-)

Luca Milanesio

unread,
Oct 28, 2021, 5:20:32 PM10/28/21
to Repo and Gerrit Discussion, Luca Milanesio, johann...@gmail.com, Ben Rohlfs

On 28 Oct 2021, at 22:15, Ben Rohlfs <bro...@google.com> wrote:

I can help writing the new plugin code. I "just" need the correct HTTP URLs for fetching the data per change. :-)

Happy to cooperate on it :-) I’ll schedule a session for next week, so we can join forces on that.

Luca.

Phil Longstaff

unread,
Apr 4, 2022, 11:19:30 AM4/4/22
to Repo and Gerrit Discussion
Is there any plan yet for a Jenkins plugin to use the new Checks API and UI? We would like to start providing info from our Jenkins builds to Gerrit and would prefer to use the new solution rather than the older deprecated solution.

Phil


CONFIDENTIALITY NOTICE: This email and any attachments are for the sole use of the intended recipient and may contain material that is proprietary, confidential, privileged or otherwise legally protected or restricted under applicable government laws. Any review, disclosure, distributing or other use without expressed permission of the sender is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies without reading, printing, or saving. 

Ben Rohlfs

unread,
Apr 8, 2022, 12:09:57 PM4/8/22
to Phil Longstaff, Repo and Gerrit Discussion
Hi Phil,

At the moment there is still no such plugin, but I would still like to write one. I am leaving for a two weeks vacation, but I would be happy to collaborate in May/June on writing such a plugin. I can basically write all the frontend typescript code, set up a repo and a BUILD, etc. What I need as input is which HTTP requests to Jenkins should be made, how this should be configured and how the results should be parsed and converted into checks.ts types.

-Ben

vlad...@gmail.com

unread,
Nov 23, 2022, 6:53:30 AM11/23/22
to Repo and Gerrit Discussion
Dear all, any update on this effort?

Thomas Dräbing

unread,
Nov 23, 2022, 7:00:52 AM11/23/22
to vlad...@gmail.com, Repo and Gerrit Discussion
On Wed, 23 Nov 2022 at 12:53, vlad...@gmail.com <vlad...@gmail.com> wrote:
Dear all, any update on this effort?


During the hackathon I implemented a firsts version of a plugin for Jenkins that exposes a REST API allowing to search for Runs that work on a Gerrit patchset and also adapted the checks-jenkins plugin to use it. This allowed for more efficient fetching of information used by the Checks API. I am currently in the process of releasing this Jenkins plugin and am working on the open review items by the Jenkins maintainers. The lucene-search plugin which is used to provide an index has some issues however. I am planning to contribute fixes but can't say anything on how long this will take to be released. I will post an email to the mailing list as soon as the plugin is released.
 
Reply all
Reply to author
Forward
0 new messages